Subject: [PATCH] testing/lf: new aport

From: Miles Alan <[email-masked]>
Date: Fri, 29 May 2020 21:13:56 -0500

https://github.com/gokcehan/lf
Terminal filemanager written in Go with vim-style keybindings
---
 testing/lf/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 testing/lf/APKBUILD

diff --git a/testing/lf/APKBUILD b/testing/lf/APKBUILD
new file mode 100644
index 00000000..f79c70ae
--- /dev/null
+++ b/testing/lf/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Miles Alan <[email-masked]>
+pkgname=lf
+pkgver=14
+pkgrel=0
+pkgdesc="Terminal filemanager written in Go with vim-style keybindings"
+url="https://github.com/gokcehan/lf"
+arch="all"
+license="MIT"
+makedepends="go"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/gokcehan/lf/archive/r$pkgver.tar.gz"
+builddir="$srcdir/src/github.com/gokcehan/$pkgname"
+options="chmod-clean"
+
+prepare() {
+	mkdir -p ${builddir%/*}
+	mv $srcdir/$pkgname-r$pkgver "$builddir"/
+	default_prepare
+	go mod vendor
+}
+
+build() {
+	go build -v -o bin/$pkgname
+}
+
+check() {
+	go test
+}
+
+package() {
+	install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
+	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+	install -Dm644 lf.1 "$pkgdir"/usr/share/man/man1/lf.1
+}
+
+sha512sums="cd2e268d551a0a83a32563424675455288e09b28d60940143eff4d24cf5b98ad0d7bd9ab100ea5a456e37460c318001ad5b444d252a986e9ddcfff274adf7720  lf-14.tar.gz"
-- 
2.26.2