blob: f4165dee0dfb5385b8869130b3519c6511069914 (
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
|
# Maintainer: Julien Virey <julien.virey@gmail.com>
pkgname=pilgo
_binname=plg
pkgver=0.5.0
pkgrel=3
pkgdesc='Configuration-based symlink farm manager CLI and framework'
arch=('x86_64')
url='https://github.com/gbrlsnchs/pilgo'
license=('MIT')
conflicts=("${pkgname}-bin")
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('4fefbc30e8d2568c04687613a611ac9f9864028add28b82b3912b9e267c20635')
build() {
cd $pkgname-$pkgver
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-X ${url#https://}/cmd/internal.version=$pkgver -linkmode external -extldflags \"${LDFLAGS}\"" \
-o $_binname "${url#https://}/cmd/plg"
}
package() {
cd $pkgname-$pkgver
install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
install -Dm755 $_binname "$pkgdir"/usr/bin/$_binname
}
|