blob: 30576be83282324f817a478a4eaf48c314bd1395 (
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
|
# Maintainer: Axel Lehmann <lehmann at cs dot uni-freiburg do de>
pkgname=wharfer
pkgver=v0.5.3
pkgrel=1
pkgdesc='wrapper around docker'
arch=('x86_64')
url="https://github.com/ad-freiburg/wharfer"
license=('APACHE')
depends=('docker')
makedepends=('go-pie' 'git')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("${pkgname}::git+${url}#tag=$pkgver")
md5sums=('SKIP')
build() {
cd "$pkgname"
go build \
-gcflags "all=-trimpath=$PWD" \
-asmflags "all=-trimpath=$PWD" \
-ldflags "-X main.version=$(git describe --always --long --dirty) -extldflags $LDFLAGS" \
-o $pkgname .
}
package() {
cd "$pkgname"
install -Dm755 $pkgname "$pkgdir"/usr/bin/${pkgname}
chown root:docker "$pkgdir"/usr/bin/${pkgname}
chmod g+s "$pkgdir"/usr/bin/${pkgname}
}
|