aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/glow/APKBUILD30
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"