summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 220d07a72bf67d6113889d9c93a95609c424e506 (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
# Maintainer: Adam Hose <adis@blad.is>

_pkgbase=python-netfilterqueue
pkgname=python-netfilterqueue-git
pkgver=r66.3fa8a38
pkgrel=1
pkgdesc="Python 3.x for libnetfilter_queue."
arch=('any')
url="https://github.com/kti/python-netfilterqueue"
license=("GPL2")
depends=('python' 'libnetfilter_queue')
source=("${_pkgbase}::git+https://github.com/kti/python-netfilterqueue")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgbase}"
	( set -o pipefail
		git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
		printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

package() {
	cd "${srcdir}/${_pkgbase}"
	python setup.py install -O1 --root="$pkgdir"
}