~alpine/aports

testing/lf: new aport v1 APPLIED

Miles Alan
Miles Alan: 1
 testing/lf: new aport

 1 files changed, 36 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3330/mbox | git am -3
Learn more about email & git

[PATCH] testing/lf: new aport Export this patch

Miles Alan
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 <m@milesalan.com>
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
Konstantin Kulikov
Many devs ignore aports ML, consider sending merge request at https://gitlab.alpinelinux.org/alpine/aports

Review comments inline below.
View this thread in the archives