summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortuberry2020-11-18 00:55:22 +0800
committertuberry2020-11-18 00:55:22 +0800
commite0555d52208777941800d70f03df377562b2dd93 (patch)
tree273b5368c5821a68883cf42e09aa52717ac5c553
downloadaur-e0555d52208777941800d70f03df377562b2dd93.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD32
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5b2f609d3c7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = chinadns-ng-git
+ pkgdesc = Chinadns next generation, refactoring with epoll and ipset
+ pkgver = r341.90e9f26
+ pkgrel = 1
+ url = https://github.com/zfl9/chinadns-ng
+ arch = i686
+ arch = x86_64
+ license = AGPL3
+ makedepends = git
+ depends = glibc
+ provides = chinadns-ng
+ conflicts = chinadns-ng
+ source = git+https://github.com/zfl9/chinadns-ng
+ sha512sums = SKIP
+
+pkgname = chinadns-ng-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8644e145a17
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: tuberry
+
+_srcname='chinadns-ng'
+pkgname=chinadns-ng-git
+pkgver=r341.90e9f26
+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}
+}