diff options
author | Joe Searle <joe@jsearle.net> | 2019-09-26 16:05:54 +0000 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2019-09-26 18:15:47 +0200 |
commit | 553052390de158291f9288cfe65cc91bf76842b5 (patch) | |
tree | 5b6a1cd6fef9d2a377b4fce95f662f779e3075e7 /testing/tcolors | |
parent | 40155debf7d5f16e82cd95541de8676a919cb146 (diff) | |
download | aports-553052390de158291f9288cfe65cc91bf76842b5.tar.bz2 aports-553052390de158291f9288cfe65cc91bf76842b5.tar.xz |
testing/tcolors: new aport
Diffstat (limited to 'testing/tcolors')
-rw-r--r-- | testing/tcolors/APKBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/tcolors/APKBUILD b/testing/tcolors/APKBUILD new file mode 100644 index 0000000000..9ef2d4117e --- /dev/null +++ b/testing/tcolors/APKBUILD @@ -0,0 +1,25 @@ +# Contributor: Joe Searle <joe@jsearle.net> +# Maintainer: Joe Searle <joe@jsearle.net> +pkgname=tcolors +pkgver=0.3.1 +pkgrel=0 +pkgdesc="Commandline color picker and palette builder" +url="https://github.com/bcicen/tcolors" +arch="all" +license="MIT" +makedepends="go" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/bcicen/tcolors/archive/v$pkgver.tar.gz" +options="!check" # No tests + +build() { + go mod download + go build -ldflags "-w -X main.version=${pkgver}-${pkgrel} -X main.build=$pkgbuild" -o tcolors +} + +package() { + install -Dm755 tcolors "${pkgdir}/usr/bin/tcolors" + install -Dm644 docs/man1/tcolors.1 "$pkgdir/usr/share/man/man1/${pkgname}.1" +} + +sha512sums="ec492f93ca819140b8b933d57c6e352eecd67e3c9c8f404d87f63a191bed92290ab13730cf311697952a581a83671562937150bd450a5a58aedb2add3b83a670 tcolors-0.3.1.tar.gz" |