summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Falkenberg2021-04-16 21:45:41 +0200
committerRobert Falkenberg2021-04-16 21:45:41 +0200
commit32025829ee8f5be2a31bd1823b0ceedcb61d969f (patch)
tree711f884f5649349278a02a91b1491db705aad329
downloadaur-32025829ee8f5be2a31bd1823b0ceedcb61d969f.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD30
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..27ccf17bbbb
--- /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 00000000000..92ad0507b43
--- /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
+}