diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 16:19:31 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-27 16:23:49 +0100 |
commit | 606fd9d93e0945d8ca446bdebc60ee8b581b75e8 (patch) | |
tree | 7fdc274a043e53de9d310ec10ac34e4a1f445d71 /testing/glow | |
parent | 9d90b33c15dbd43c53a97582f7c2607a719975e9 (diff) | |
download | aports-606fd9d93e0945d8ca446bdebc60ee8b581b75e8.tar.bz2 aports-606fd9d93e0945d8ca446bdebc60ee8b581b75e8.tar.xz |
testing/glow: new aport
https://github.com/charmbracelet/glow
CLI Markdown render
Diffstat (limited to 'testing/glow')
-rw-r--r-- | testing/glow/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/glow/APKBUILD b/testing/glow/APKBUILD new file mode 100644 index 0000000000..55e7a334b9 --- /dev/null +++ b/testing/glow/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=glow +pkgver=0.1.3 +pkgrel=0 +pkgdesc="CLI Markdown render" +url="https://github.com/charmbracelet/glow" +options="!check chmod-clean" +arch="all" +license="MIT" +makedepends="go" +source="$pkgname-$pkgver.tar.gz::https://github.com/charmbracelet/glow/archive/v$pkgver.tar.gz" +builddir="$srcdir/src/github.com/glow" + +prepare() { + mkdir -p ${builddir%/*} + mv "$srcdir"/$pkgname-$pkgver "$builddir"/ + default_prepare +} + +build() { + export GOPATH="$srcdir" + go build -v -o glow -ldflags "-X main.Version=$pkgver -s -w" +} + +package() { + install -Dm755 glow "$pkgdir"/usr/bin/glow +} + +sha512sums="ea4c9d823dc8b17fd07935bfc2221c86430cd8383d8f4f38986413bdac0d170bf35f4d4f0ba1e805ed95b8dd1e9dba5aa9d0d505ecff80c6f113211927882d5a glow-0.1.3.tar.gz" |