summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hsuan Yen2018-09-27 19:22:28 +0800
committerChih-Hsuan Yen2018-09-27 19:22:28 +0800
commitca9db59a112417b5ed9e33ed79953d6b9a808a7c (patch)
tree7dbbf79692b64b8d31ca5dccb53040308231402d
downloadaur-ca9db59a112417b5ed9e33ed79953d6b9a808a7c.tar.gz
Bump to 0.5.0
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD62
2 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..140398f1fe2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = python-pylzma
+ pkgdesc = Platform independent python bindings for the LZMA compression library
+ pkgver = 0.5.0
+ pkgrel = 1
+ url = https://www.joachim-bauch.de/projects/pylzma/
+ arch = i686
+ arch = x86_64
+ license = LGPL2.1
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ noextract = ux.stackexchange.com.7z
+ source = pylzma-0.5.0.tar.gz::https://github.com/fancycode/pylzma/archive/v0.5.0.tar.gz
+ source = https://archive.org/download/stackexchange/ux.stackexchange.com.7z
+ sha256sums = baefed4c84d147a507a606206478ff0894e04fa41aa3742381159cde44836fc3
+ sha256sums = ffa75f00eaf0d12fbe5c591d130136bb671e35b42d6738777718ecdbbf21637b
+
+pkgname = python-pylzma
+ depends = python
+ conflicts = pylzma
+
+pkgname = python2-pylzma
+ depends = python2
+ provides = pylzma=0.5.0
+ conflicts = pylzma
+ replaces = pylzma
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f6a5ab3b2c9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
+# Contributor: Penguin <TGates81.at.gmail.dot.com>
+
+_pkgname=pylzma
+pkgbase=python-$_pkgname
+pkgname=(python-$_pkgname python2-$_pkgname)
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="Platform independent python bindings for the LZMA compression library"
+url="https://www.joachim-bauch.de/projects/pylzma/"
+license=("LGPL2.1")
+arch=(i686 x86_64)
+makedepends=('python-setuptools' 'python2-setuptools')
+source=($_pkgname-$pkgver.tar.gz::https://github.com/fancycode/pylzma/archive/v$pkgver.tar.gz
+ # testing data
+ https://archive.org/download/stackexchange/ux.stackexchange.com.7z)
+sha256sums=('baefed4c84d147a507a606206478ff0894e04fa41aa3742381159cde44836fc3'
+ 'ffa75f00eaf0d12fbe5c591d130136bb671e35b42d6738777718ecdbbf21637b')
+noextract=(ux.stackexchange.com.7z)
+
+prepare() {
+ cp -r $_pkgname-$pkgver{,-py2}
+
+ ln -s ../../../ux.stackexchange.com.7z $_pkgname-$pkgver/tests/data/
+ ln -s ../../../ux.stackexchange.com.7z $_pkgname-$pkgver-py2/tests/data/
+
+ sed -i 's#/usr/bin/python -u#/usr/bin/python2 -u#' $_pkgname-$pkgver-py2/py7zlib.py
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/$_pkgname-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ PYTHONPATH="$PWD:$PWD/build/lib.linux-$CARCH-3.7" python tests/__init__.py
+
+ cd "$srcdir/$_pkgname-$pkgver-py2"
+ PYTHONPATH="$PWD:$PWD/build/lib.linux-$CARCH-2.7" python2 tests/__init__.py
+}
+
+package_python-pylzma() {
+ depends=('python')
+ conflicts=('pylzma')
+
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root=$pkgdir --optimize=1 --skip-build
+}
+
+package_python2-pylzma() {
+ depends=('python2')
+ provides=("pylzma=$pkgver")
+ replaces=('pylzma')
+ conflicts=('pylzma')
+
+ cd "$srcdir/$_pkgname-$pkgver-py2"
+ python2 setup.py install --root=$pkgdir --optimize=1 --skip-build
+}