blob: 07b7c61501a664c34cca3fe50cc0a98c2ec8ab43 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: shulhan <ms@kilabit.info>
pkgname=rescached-git
pkgver=4.0.0.r0.g004ca8b
pkgrel=1
pkgdesc="Resolver/DNS cache daemon"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/shuLhan/rescached-go"
license=('custom:BSD')
depends=('bash')
provides=('rescached')
makedepends=('git' 'go>=1.14')
source=(
"$pkgname::git+https://github.com/shuLhan/rescached-go.git"
)
sha1sums=(
'SKIP'
)
backup=(
'etc/rescached/rescached.cfg'
'etc/rescached/localhost.cert.pem'
'etc/rescached/localhost.key.pem'
)
install=rescached.install
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
echo ">>"
echo ">> cleaning ..."
echo ">>"
make clean
echo ">>"
echo ">> make ..."
echo ">>"
unset GOROOT
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
make || return 1
}
package() {
cd "$pkgname"
make PREFIX="$pkgdir" install
install -Dm644 $srcdir/$pkgname/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|