blob: 57343f2c8becf7a04dad2402cd7329a1b1ad3b47 (
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: tuberry
_srcname=chinadns-ng
pkgname=${_srcname}-git
pkgver=r380.0f80a32
pkgrel=1
pkgdesc='Chinadns next generation, refactoring with epoll and ipset'
arch=(i686 x86_64)
url=https://github.com/zfl9/${_srcname}
license=(AGPL3)
makedepends=(git)
provides=(${_srcname})
conflicts=(${_srcname})
source=(git+${url})
sha512sums=(SKIP)
pkgver() {
cd ${_srcname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${_srcname}
make
}
package() {
cd ${_srcname}
make DESTDIR=${pkgdir}/usr/bin install
}
|