diff options
author | sumt | 2018-02-04 17:28:34 +0200 |
---|---|---|
committer | sumt | 2018-02-04 17:28:34 +0200 |
commit | 53290bb26da14dbc8a9cbf0ff2d9bfca0d177a46 (patch) | |
tree | dc5589fa486100e6d330636a1edf02f98d4ba7cd | |
download | aur-python-py3amf-git.tar.gz |
Init PKGBUILD
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e306a36e0f7d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-py3amf-git + pkgdesc = AMF support for Python + pkgver = 0.8.7.r0.g06c5ee6 + pkgrel = 1 + url = https://github.com/StdCarrot/Py3AMF + arch = x86_64 + license = MIT + makedepends = git + makedepends = python-setuptools + depends = python-defusedxml + provides = python-pyamf=0.8.7.r0.g06c5ee6 + conflicts = python-pyamf + source = python-py3amf-git::git+https://github.com/StdCarrot/Py3AMF.git + md5sums = SKIP + +pkgname = python-py3amf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e9cf906650cd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: sumt <sumt at sci dot fi> + +pkgname=python-py3amf-git +pkgver=0.8.7.r0.g06c5ee6 +pkgrel=1 +pkgdesc="AMF support for Python" +arch=('x86_64') +url="https://github.com/StdCarrot/Py3AMF" +license=('MIT') +depends=('python-defusedxml') +makedepends=('git' 'python-setuptools') +provides=(python-pyamf=$pkgver) +conflicts=(python-pyamf) +source=("$pkgname::git+https://github.com/StdCarrot/Py3AMF.git") +md5sums=("SKIP") + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 +} + |