diff options
author | Andrei "Akari" Alexeyev | 2017-05-17 11:17:33 +0300 |
---|---|---|
committer | Andrei "Akari" Alexeyev | 2017-05-17 11:18:56 +0300 |
commit | bc70c3b6a74ce1f7b5d1d3cc1334224331410c8b (patch) | |
tree | 1e4f70a00b3b15510c51ea333ed1275793884586 | |
download | aur-lolidns-git.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..371a2495136c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = lolidns-git + pkgdesc = DNS proxy for losers + pkgver = 0.1.r1.a94592d + pkgrel = 1 + url = https://github.com/Akaricchi/lolidns + arch = any + license = WTFPL + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-dnslib + provides = lolidns + conflicts = lolidns + source = pkgbuild-lolidns::git+https://github.com/Akaricchi/lolidns + md5sums = SKIP + +pkgname = lolidns-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b9440e1b3a7c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Andrei Alexeyev <akari@alienslab.net> + +pkgname=lolidns-git +pkgver=0.1.r1.a94592d +pkgrel=1 +pkgdesc="DNS proxy for losers" +arch=('any') +url="https://github.com/Akaricchi/lolidns" +license=('WTFPL') +groups=() +depends=('python' 'python-dnslib') +makedepends=('git' 'python-setuptools') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +replaces=() +backup=() +options=() +install= +source=('pkgbuild-lolidns::git+https://github.com/Akaricchi/lolidns') +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/pkgbuild-${pkgname%-git}" + printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + +package() { + cd "$srcdir/pkgbuild-${pkgname%-git}" + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 "systemd/lolidns.service" "$pkgdir/usr/lib/systemd/system/lolidns.service" + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} |