aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-logilab-common/APKBUILD
blob: fd5a4a558f201bade5ff01dba19def6433255c26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-logilab-common
_pkgname=logilab-common
pkgver=0.63.2
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://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_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="2bf4599ae1f2ccf4603ca02c5d7e798e  logilab-common-0.63.2.tar.gz"
sha256sums="603ba00c9bb09219a3bd2906c214d9455481110dacc472f450b53d5ae90f28e7  logilab-common-0.63.2.tar.gz"
sha512sums="e4b089387ab7d5d039ec719e736711f54af8d722be4ea0a933014375fe353045528c3c74c3feb6868aefe4a867223c483985fb1415aabe25dba1d333d1afbdb9  logilab-common-0.63.2.tar.gz"