diff options
author | Luis Martinez | 2021-12-10 12:14:34 -0600 |
---|---|---|
committer | Luis Martinez | 2021-12-10 12:15:24 -0600 |
commit | 1639a1d1386e82c9106091d2cde0b7f2bdf807bb (patch) | |
tree | c41a29ca2af57cd30a9245b0fb9d6b44cf49e09d | |
download | aur-1639a1d1386e82c9106091d2cde0b7f2bdf807bb.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..609d27a8ffd1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = llama + pkgdesc = Terminal file manager + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/antonmedv/llama + arch = x86_64 + arch = i686 + arch = arm + license = MIT + makedepends = go + depends = glibc + source = llama-1.0.0.tar.gz::https://github.com/antonmedv/llama/archive/v1.0.0.tar.gz + sha256sums = c49f54e8dbaa5090e34ec7c9d5cf8f772a7c2d565ae072e9c275fdf97f8897e9 + +pkgname = llama diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ca2f6f545782 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Emilio Reggi <nag@mailbox.org> + +pkgname=llama +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Terminal file manager" +arch=('x86_64' 'i686' 'arm') +url="https://github.com/antonmedv/llama" +license=('MIT') +depends=('glibc') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('c49f54e8dbaa5090e34ec7c9d5cf8f772a7c2d565ae072e9c275fdf97f8897e9') + +prepare() { + cd "$pkgname-$pkgver" + mkdir -p build + go mod tidy +} + +build() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + + cd "$pkgname-$pkgver" + go build -o build/ -ldflags "-linkmode=external -extldflags=${LDFLAGS}" +} + +package() { + cd "$pkgname-$pkgver" + install -D build/llama -t "$pkgdir/usr/bin/" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" +} |