summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail f. Shiryaev2019-04-26 17:24:07 +0200
committerMikhail f. Shiryaev2019-04-26 17:24:07 +0200
commit25938cdc4b29674f91b2438e9cc68fd6a5ce6f69 (patch)
treeb9e274dc5ef056decb570d708c11a1f0832db772
downloadaur-25938cdc4b29674f91b2438e9cc68fd6a5ce6f69.tar.gz
Create a package
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD33
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1a798838584
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = python-adminapi
+ pkgdesc = Adminapi is a python module which can be used to talk to the open source serveradmin project by Innogames
+ pkgver = 1.4.3
+ pkgrel = 1
+ url = https://github.com/InnoGames/serveradmin
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = serveradmin.tar.gz::https://github.com/InnoGames/serveradmin/archive/v1.4.3.tar.gz
+ sha256sums = 050da40183d1d3ade1016aaf012655f28253dfa335d37ead44df0d6b0535dd7b
+
+pkgname = python-adminapi
+ depends = python
+ depends = python-ipaddress
+ depends = python-netaddr
+ conflicts = python-adminapi-git
+
+pkgname = python2-adminapi
+ depends = python2
+ depends = python2-ipaddress
+ depends = python2-netaddr
+ conflicts = python2-adminapi-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..501fb73b512
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Mikhail felixoid Shiryaev mr<dot>felixoid<at>gmail<dot>com
+
+_name=adminapi
+_srcname=serveradmin
+pkgbase="python-${_name}"
+pkgname=("python-${_name}" "python2-${_name}")
+pkgver=1.4.3
+pkgrel=1
+pkgdesc='Adminapi is a python module which can be used to talk to the open source serveradmin project by Innogames'
+arch=('any')
+url="https://github.com/InnoGames/${_srcname}"
+makedepends=('python-setuptools' 'python2-setuptools')
+license=('MIT')
+source=("${_srcname}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('050da40183d1d3ade1016aaf012655f28253dfa335d37ead44df0d6b0535dd7b')
+
+
+package_python2-adminapi() {
+ depends=('python2' 'python2-ipaddress' 'python2-netaddr')
+ conflicts=("python2-${_name}-git")
+ cd "${srcdir}/${_srcname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ mv "${pkgdir}/usr/bin/${_name}" "${pkgdir}/usr/bin/${_name}2"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"LICENSE
+}
+
+package_python-adminapi() {
+ depends=('python' 'python-ipaddress' 'python-netaddr')
+ conflicts=("python-${_name}-git")
+ cd "${srcdir}/${_srcname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"LICENSE
+}