summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9440e1b3a7c82065b929ee41f00a2b17cb40697 (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
# 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"
}