From 8b486e622758cd1c8204a789492d19bf967e2b5e Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 2 Mar 2015 17:58:59 -0200 Subject: python2-liblarch: add new package to [pcr] --- pcr/python2-liblarch/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pcr/python2-liblarch/PKGBUILD (limited to 'pcr') 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 + +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: -- cgit v1.2.3