diff options
author | nullableVoidPtr | 2022-06-16 01:55:23 +0800 |
---|---|---|
committer | nullableVoidPtr | 2022-06-16 01:55:23 +0800 |
commit | ea32236c75ef3f0a063bf60fea14bb536bdca02c (patch) | |
tree | 560658c88ee7215ff0a7eea0f32c26352f954105 | |
parent | 9898779fb4ea3ee9c1900ad87c57a869fc5b3d4c (diff) | |
download | aur-ea32236c75ef3f0a063bf60fea14bb536bdca02c.tar.gz |
Point sources to upstream, provide separate build step
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 26 insertions, 24 deletions
@@ -1,16 +1,15 @@ pkgbase = python-pefile-git - pkgdesc = A simplified object-oriented Python wrapper for libpcap - pkgver = r93.5958343 + pkgdesc = A Python module to read and work with PE (Portable Executable) files + pkgver = v2022.5.30.r3.g0d5ce5e pkgrel = 1 - url = https://github.com/stangelandcl/pefile + url = https://github.com/erocarrera/pefile arch = any license = MIT makedepends = git makedepends = python-setuptools - provides = pefile - conflicts = python2-pefile-git - source = git://github.com/stangelandcl/pefile + provides = python-pefile + conflicts = python-pefile + source = python-pefile-git::git+https://github.com/erocarrera/pefile.git sha512sums = SKIP pkgname = python-pefile-git - @@ -1,32 +1,35 @@ -# Maintainer: Philipp Joram <phijor AT t-online DOT de> +# Maintainer: nullableVoidPtr <nullableVoidPtr _ gmail _ com> +# Contributor: Philipp Joram <phijor AT t-online DOT de> _gitname='pefile' pkgname="python-${_gitname}-git" -_gitauthor='stangelandcl' -pkgver=r93.5958343 +_gitauthor='erocarrera' +pkgver=v2022.5.30.r3.g0d5ce5e pkgrel=1 -pkgdesc="A simplified object-oriented Python wrapper for libpcap" +pkgdesc="A Python module to read and work with PE (Portable Executable) files" url="https://github.com/${_gitauthor}/${_gitname}" -license=('MIT') -source=("git://github.com/${_gitauthor}/${_gitname}") -sha512sums=('SKIP') arch=('any') +license=('MIT') makedepends=('git' 'python-setuptools') -conflicts=("python2-${_gitname}-git") -provides=("${_gitname}") +provides=(${pkgname%-*}) +conflicts=(${pkgname%-*}) +source=($pkgname::git+https://github.com/${_gitauthor}/${_gitname}.git) +sha512sums=('SKIP') 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)" - ) + cd "${srcdir}/${pkgname}" + git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${pkgname}" + python setup.py build } package() { - cd "${srcdir}/${_gitname}" - python setup.py install --root="$pkgdir/" --optimize=1 + cd "${srcdir}/${pkgname}" + export PYTHONHASHSEED=0 + python setup.py install --root="${pkgdir}" -O1 --skip-build install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |