diff options
author | Robert Falkenberg | 2021-04-16 21:45:41 +0200 |
---|---|---|
committer | Robert Falkenberg | 2021-04-16 21:45:41 +0200 |
commit | 32025829ee8f5be2a31bd1823b0ceedcb61d969f (patch) | |
tree | 711f884f5649349278a02a91b1491db705aad329 | |
download | aur-32025829ee8f5be2a31bd1823b0ceedcb61d969f.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..27ccf17bbbba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = python-pysim-git + pkgdesc = A python tool to program SIMs / USIMs / ISIMs + pkgver = 1.0.r125.g9d16fbc + pkgrel = 1 + url = http://osmocom.org/projects/pysim/wiki + arch = any + license = GPL2 + makedepends = python-setuptools + makedepends = git + depends = python + depends = python-pyscard + depends = python-pyserial + depends = python-pytlv + depends = python-cmd2 + depends = python-jsonpath-ng + depends = python-construct + source = git+https://git.osmocom.org/pysim + sha256sums = SKIP + +pkgname = python-pysim-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..92ad0507b437 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Robert Falkenberg <robert.falkenberg@tu-dortmund.de> + +pkgname=python-pysim-git +_pyname=pysim +pkgver=1.0.r125.g9d16fbc +pkgrel=1 +pkgdesc='A python tool to program SIMs / USIMs / ISIMs' +arch=('any') +url='http://osmocom.org/projects/pysim/wiki' +license=('GPL2') +depends=('python' + 'python-pyscard' + 'python-pyserial' + 'python-pytlv' + 'python-cmd2' + 'python-jsonpath-ng' + 'python-construct') +makedepends=('python-setuptools' 'git') +source=('git+https://git.osmocom.org/pysim') +sha256sums=('SKIP') + +pkgver() { + cd ${_pyname} + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^\(v\)\1*//' +} + +package() { + cd "${srcdir}/${_pyname}" + python setup.py install --root="${pkgdir}/" --optimize=1 +} |