blob: 83d9956a21aba365fb665f221f499e0ef8b07a1c (
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
33
34
35
36
|
# Maintainer: Barış İnandıoğlu <68742481+baris-inandi@users.noreply.github.com>
pkgname=fe
pkgver=1.0.20
pkgrel=1
pkgdesc="AUR helper with a familiar subcommand system"
arch=(x86_64)
url="https://github.com/baris-inandi/fe"
license=('GPL3')
depends=(bash sudo paru)
makedepends=(git go)
source=("git+$url")
md5sums=('SKIP')
backup=("etc/feparu.conf" "etc/fepacman.conf")
prepare() {
cd "$pkgname"
git checkout tags/$pkgver -b $pkgver
}
build() {
cd "$pkgname"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o "$pkgname-$pkgver-$pkgrel"
}
package() {
cd "$pkgname"
install -Dm644 conf/pacman.conf "$pkgdir"/etc/fepacman.conf
install -Dm644 conf/paru.conf "$pkgdir"/etc/feparu.conf
install -Dm755 "$pkgname-$pkgver-$pkgrel" "$pkgdir"/usr/bin/$pkgname
}
|