diff options
author | lockshaw | 2019-02-04 21:03:47 -0800 |
---|---|---|
committer | lockshaw | 2019-02-04 21:03:47 -0800 |
commit | 5d4f6343bff591fe324b9b343fbf28dacc5c6624 (patch) | |
tree | 5f25b112c0c2e8214f6201d087093f948053c530 | |
download | aur-python-idalink-git.tar.gz |
Add package tracking idalink git master
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..914c37b3e2cb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-idalink-git + pkgdesc = Remote use of the IDA (the Interactive DisAssembler) Python API + pkgver = 0.12.r82.cf68144 + pkgrel = 1 + url = https://github.com/zardus/idalink + arch = any + license = BSD + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-rpyc + provides = python-idalink + conflicts = python-idalink + source = python-idalink-git::git+https://github.com/zardus/idalink.git#branch=master + md5sums = SKIP + +pkgname = python-idalink-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eff84ec1aec5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Colin Unger <mastakata3 at yahoo dot com> + +pkgname=python-idalink-git +pkgdesc="Remote use of the IDA (the Interactive DisAssembler) Python API" +url="https://github.com/zardus/idalink" +pkgver=0.12.r82.cf68144 +pkgrel=1 +arch=('any') +depends=('python' 'python-rpyc') +makedepends=('git' 'python-setuptools') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +license=('BSD') +source=("$pkgname::git+https://github.com/zardus/idalink.git#branch=master") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + rev_num="$(git rev-list --count HEAD)" + version_no="$(grep -oP "version='\\K([0-9\\.]+)" < setup.py)" + last_commit="$(git rev-parse --short HEAD)" + echo "$version_no.r$rev_num.$last_commit" +} + +build() { + cd "$srcdir/$pkgname" + python setup.py build +} + +package() { + cd "$srcdir/$pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |