summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam J. Bowman2015-07-07 16:31:05 -0400
committerWilliam J. Bowman2015-07-07 16:31:05 -0400
commitec1d72d5b28b0817d269dc460d11a64d24904f01 (patch)
tree1bc1af995f82f947923b5c8ca874dd5d33cf182b
downloadaur-ec1d72d5b28b0817d269dc460d11a64d24904f01.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD38
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..63330755507
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python2-pyliblzma
+ pkgdesc = Python 2 bindings for liblzma
+ pkgver = 0.5.3
+ pkgrel = 6
+ url = https://pypi.python.org/pypi/pyliblzma
+ arch = i686
+ arch = x86_64
+ license = LGPL3
+ makedepends = python2-setuptools
+ depends = python2
+ depends = xz
+ source = https://pypi.python.org/packages/source/p/pyliblzma/pyliblzma-0.5.3.tar.bz2
+ sha256sums = 08d762f36d5e59fb9bb0e22e000c300b21f97e35b713321ee504cfb442667957
+
+pkgname = python2-pyliblzma
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..580dabb4dd4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: William J. Bowman <bluephoenix47@gmail.com>
+# Contributor: Levente Polyak <levente[at]leventepolyak[dot]net>
+# Contributor: Daniel Strandberg <esodax!nospam!@gmail.com>
+
+_relname=pyliblzma
+pkgname=python2-${_relname}
+pkgver=0.5.3
+pkgrel=6
+pkgdesc='Python 2 bindings for liblzma'
+arch=('i686' 'x86_64')
+url='https://pypi.python.org/pypi/pyliblzma'
+license=('LGPL3')
+depends=('python2' 'xz')
+makedepends=('python2-setuptools')
+source=(https://pypi.python.org/packages/source/p/${_relname}/${_relname}-${pkgver}.tar.bz2)
+sha256sums=('08d762f36d5e59fb9bb0e22e000c300b21f97e35b713321ee504cfb442667957')
+
+prepare() {
+ cd ${_relname}-${pkgver}
+ sed -e 's/env python$/env python2/g' -i liblzma.py
+}
+
+build() {
+ cd ${_relname}-${pkgver}
+ python2 setup.py build
+}
+
+check() {
+ cd ${_relname}-${pkgver}
+ python2 setup.py test
+}
+
+package() {
+ cd ${_relname}-${pkgver}
+ python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr
+}
+
+# vim:ts=2:sw=2:et: