# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py-logilab-common _pkgname=logilab-common pkgver=0.59.0 pkgrel=0 pkgdesc="A collection of Python packages and modules used by Logilab projects" url="http://www.logilab.org/project/logilab-common" arch="noarch" license="LGPL2+" depends="python" depends_dev="" makedepends="python-dev" install="" subpackages="$pkgname-doc" source="http://download.logilab.org/pub/common/$_pkgname-$pkgver.tar.gz" _builddir="$srcdir"/"$_pkgname"-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } doc() { # The man page is not picked-up automatically mkdir -p "$subpkgdir"/usr/share/man/man1 || return 1 mv "$_builddir"/doc/*.1 "$subpkgdir"/usr/share/man/man1/ || return 1 } md5sums="aab8881da1a08ffe625146a312b2e28f logilab-common-0.59.0.tar.gz" sha256sums="ebd7b84c0439fe003a85832ae5dba490ed081366866e72d30054178193afaaea logilab-common-0.59.0.tar.gz" sha512sums="a38ba336c7877f94c93c2aedf9a8d225dd8f7d1a70b655bfb66df53f7a9ddd403ead5b85755bcefa52f6828e57967f20b397011bbf7f8964770bda4d3c12fbe0 logilab-common-0.59.0.tar.gz"