diff options
author | David Manouchehri | 2015-10-10 19:20:39 -0400 |
---|---|---|
committer | David Manouchehri | 2015-10-10 19:20:39 -0400 |
commit | 80171d0522817eec1178c3c96a19046611a67fbc (patch) | |
tree | 4c623e68dbf4a0bae13eadadc84d9f6f8e561a99 | |
parent | 03cf639d21461e4e46cb06a02dcef109c954ce6a (diff) | |
download | aur-80171d0522817eec1178c3c96a19046611a67fbc.tar.gz |
Modified to use Git.
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 33 insertions, 18 deletions
@@ -1,14 +1,17 @@ -pkgbase = python2-pypcap +pkgbase = python2-pypcap-git pkgdesc = A simplified object-oriented Python wrapper for libpcap - pkgver = 1.1.3 + pkgver = v1.1.3.r4.ga6a2f14 pkgrel = 1 url = https://github.com/pynetwork/pypcap arch = any license = BSD + makedepends = git makedepends = python2-setuptools depends = python2 - source = https://github.com/pynetwork/pypcap/archive/v1.1.3.zip - md5sums = 2bb733983f96509401d23590b9ae745d + provides = pypcap + conflicts = pypcap + source = git://github.com/pynetwork/pypcap#branch=master + sha512sums = SKIP -pkgname = python2-pypcap +pkgname = python2-pypcap-git @@ -1,24 +1,36 @@ -# Maintainer: Achilleas Pipinellis <axilleas archlinux info> -# Note: This is a fork fixing numerous bugs. You will not find this version -# in pypi. +# Maintainer: David Manouchehri <manouchehri@riseup.net> +# Contributor: Achilleas Pipinellis <axilleas archlinux info> -pkgname=python2-pypcap -_pkgname=pypcap -pkgver=1.1.3 +_gitname='pypcap' +pkgname="python2-${_gitname}-git" +_gitbranch='master' +_gitauthor='pynetwork' +pkgver=v1.1.3.r4.ga6a2f14 pkgrel=1 pkgdesc="A simplified object-oriented Python wrapper for libpcap" -arch=(any) -url="https://github.com/pynetwork/pypcap" +url="https://github.com/${_gitauthor}/${_gitname}" license=('BSD') +source=("git://github.com/${_gitauthor}/${_gitname}#branch=${_gitbranch}") +sha512sums=('SKIP') +arch=('any') depends=('python2') -makedepends=('python2-setuptools') -source=(https://github.com/pynetwork/$_pkgname/archive/v${pkgver}.zip) +makedepends=('git' 'python2-setuptools') +conflicts=("${_gitname}") +provides=("${_gitname}") + +pkgver() { + cd "${srcdir}/${_gitname}" + ( + 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/$_pkgname-$pkgver" + cd "${srcdir}/${_gitname}" python2 setup.py install --root="$pkgdir/" --optimize=1 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } -# vim:set ts=2 sw=2 et: -md5sums=('2bb733983f96509401d23590b9ae745d') +# vim:set et sw=2 sts=2 tw=80:
\ No newline at end of file |