summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-03-02 17:58:59 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-03-02 17:58:59 -0200
commit8b486e622758cd1c8204a789492d19bf967e2b5e (patch)
tree454f8ce6215441ee1e5f85c61a14a9040b7a5078 /pcr
parentbc9ef7a65dbdbc73be72d375bd46bdc626cef50d (diff)
downloadabslibre-8b486e622758cd1c8204a789492d19bf967e2b5e.tar.gz
abslibre-8b486e622758cd1c8204a789492d19bf967e2b5e.tar.bz2
abslibre-8b486e622758cd1c8204a789492d19bf967e2b5e.zip
python2-liblarch: add new package to [pcr]
Diffstat (limited to 'pcr')
-rw-r--r--pcr/python2-liblarch/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/python2-liblarch/PKGBUILD b/pcr/python2-liblarch/PKGBUILD
new file mode 100644
index 000000000..97f5020ef
--- /dev/null
+++ b/pcr/python2-liblarch/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer (Arch): Francois Boulogne <fboulogne at april dot org>
+
+pkgname=python2-liblarch
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Python library to easily handle data structure"
+arch=('any')
+url="https://live.gnome.org/liblarch"
+license=('LGPL3')
+depends=('python2')
+optdepends=()
+makedepends=('python2' 'python2-distribute')
+checkdepends=('python2-nose' 'python2-gobject2' 'pygtk')
+provides=('python2-liblarch_gtk')
+conflicts=('python2-liblarch_gtk')
+source=("https://github.com/liblarch/liblarch/archive/v${pkgver}.tar.gz")
+md5sums=('a49cd17bd00bdd42cbcaf20c06789508')
+
+check() {
+ cd "$srcdir/liblarch-${pkgver}"
+ python2 run-tests
+}
+
+package() {
+ cd "$srcdir/liblarch-${pkgver}"
+ python2 setup.py install --root="${pkgdir}"
+ find "$pkgdir"/usr/lib/python2.7/site-packages/liblarch -name '*.py' | \
+ xargs sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|"
+}
+
+
+# vim:set ts=2 sw=2 et: