blob: 1b6b485bd948c523b32392b606366c9a504649bb (
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
37
38
|
# Maintainer: AdmiringWorm <kim.nordmo@gmail.com>
# Contributor: nirnakinho <aur at dominikbodi dot de>
pkgname=dnscontrol
pkgver=4.14.3
pkgrel=0
pkgdesc="Synchronize your DNS to multiple providers from a simple DSL"
arch=('x86_64' 'armv7h' 'aarch64')
url="https://stackexchange.github.io/${pkgname}/"
license=('MIT')
depends=('glibc')
makedepends=('go')
provides=("${pkgname}=${pkgver}")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/StackExchange/${pkgname}/archive/v${pkgver}.tar.gz")
b2sums=('8dc460c3c540fa57ed41e5253f99c559df378b9b1acebc2ce79ed4c88307918c4c793084de38de88c4eff14d2c42b0eead175d862db85787bd4d9b876e089024')
prepare(){
cd "$pkgname-$pkgver"
mkdir -p build/
# mkdir -p gopath/src/github.com/StackExchange
# ln -rTsf $pkgname-$pkgver gopath/src/github.com/StackExchange/dnscontrol
}
build() {
cd "$pkgname-$pkgver"
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 build
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 build/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|