summaryrefslogtreecommitdiff
path: root/app-misc/zclock/zclock-0.2.3.ebuild
blob: 3851693a85243538682134f2ab0bfd244e5c93e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Print an emoji according to traditional chinese calendar and more"
HOMEPAGE="https://github.com/stkw0/zclock"
SRC_URI="https://github.com/stkw0/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://gentoo.kropotkin.rocks/go-pkgs/${P}-vendor.tar.xz"
SRC_URI+=" https://gentoo.kropotkin.rocks/go-pkgs/IP2LOCATION-LITE-DB5.BIN.lzma"

LICENSE="Unlicense"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="app-arch/xz-utils"

src_compile() {
	ego build
}

src_install() {
	dobin zclock

	insinto /usr/share
	doins "${WORKDIR}/IP2LOCATION-LITE-DB5.BIN"
}