summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/python2-pyliblzma/PKGBUILD40
-rw-r--r--pcr/yum-metadata-parser/PKGBUILD25
2 files changed, 65 insertions, 0 deletions
diff --git a/pcr/python2-pyliblzma/PKGBUILD b/pcr/python2-pyliblzma/PKGBUILD
new file mode 100644
index 000000000..d4c259aba
--- /dev/null
+++ b/pcr/python2-pyliblzma/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: David P. <megver83@openmailbox.org>
+# Contributor: William J. Bowman <aur@williamjbowman.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=7
+pkgdesc='Python 2 bindings for liblzma'
+arch=('any')
+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')
+sha512sums=('272983aac426e86d6d636ccba4fe78a07d7282560081df937114162bfd317bd8023814693b8d473d0f7884e38a968ebeaf8f954a5a27c1f7e5da084f3fd05c65')
+
+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:
diff --git a/pcr/yum-metadata-parser/PKGBUILD b/pcr/yum-metadata-parser/PKGBUILD
new file mode 100644
index 000000000..b1999e96b
--- /dev/null
+++ b/pcr/yum-metadata-parser/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: David P. <megver83@openmailbox.org>
+# Contributorr: Lukas Sabota <LTsmooth42 at gmail dot com>
+# Contributor: Patrick McCarty <pnorcks at gmail dot com>
+# Contributor: Mariusz Libera <mariusz.libera@gmail.com>
+# Contributor: Chris Tusa <linisys@gmail.com>
+# Contributor: Thore Bunde <root [at] netpimp [dot] de>
+
+pkgname='yum-metadata-parser'
+pkgver='1.1.4'
+pkgrel=10
+pkgdesc='C-based metadata parser to quickly parse xml metadata into sqlite databases.'
+arch=('any')
+license=('GPL')
+url='http://yum.baseurl.org/download/yum-metadata-parser/'
+depends=('python2' 'libxml2' 'glib2')
+makedepends=('python2-pip')
+source=('http://yum.baseurl.org/download/yum-metadata-parser/yum-metadata-parser-1.1.4.tar.gz')
+sha256sums=('f1560a284541feb720c3ae35b6b31f80c2be5cb9ca86b3a1ee9459846f821ada')
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ pip2 install . --isolated --root="${pkgdir}" --no-deps --ignore-installed --build .
+}
+
+