blob: f971bb3c14f462203a6881fc8a08638766d88265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=puffin
pkgver=2.1.5
pkgrel=1
pkgdesc='TUI for hledger to manage personal finances'
arch=(x86_64)
url="https://github.com/siddhantac/$pkgname"
# https://github.com/siddhantac/puffin/issues/26
# license=()
depends=(glibc
hledger)
makedepends=(go)
_archive="$pkgname-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz")
sha256sums=('cfcb3306d55b81725808f83b973f08823d3ec74cf56ca42b309da8d661641c26')
build() {
cd "$_archive"
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"$LDFLAGS\"" \
-o "$pkgname"
}
package() {
cd "$_archive"
install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
}
|