summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f763b34d6a0397619c788b4df32228ff0ccb250 (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
# Maintainer: tuberry

_srcname='chinadns-ng'
pkgname=chinadns-ng-git
pkgver=r342.748a043
pkgrel=1
pkgdesc='Chinadns next generation, refactoring with epoll and ipset'
arch=('i686' 'x86_64')
url="https://github.com/zfl9/${_srcname}"
license=('AGPL3')
depends=('glibc')
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}
    install -Dm755 ${_srcname} ${pkgdir}/usr/bin/${_srcname}
}