blob: b5fa712865f8e8789d73daf66647957536662bb8 (
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: Barış İnandıoğlu <68742481+baris-inandi@users.noreply.github.com>
pkgname=fe
pkgver=1.2.0
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 pacman-contrib)
makedepends=(git go)
source=("$pkgname-$pkgver.tar.gz::https://github.com/baris-inandi/fe/archive/refs/tags/$pkgver.tar.gz")
backup=("etc/feparu.conf" "etc/fepacman.conf")
build() {
cd "$pkgname-$pkgver"
git checkout $(git describe --tags --abbrev=0)
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-$pkgver"
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
}
sha256sums=('e647bf58b957a49f6cfb2c52e1c86bbee69d6155a9eca4fee61e2b1627549e7d')
|