diff options
Diffstat (limited to 'main/python/APKBUILD')
-rw-r--r-- | main/python/APKBUILD | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/main/python/APKBUILD b/main/python/APKBUILD index 8fffcf7792..35ab8ef088 100644 --- a/main/python/APKBUILD +++ b/main/python/APKBUILD @@ -1,11 +1,13 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=python pkgver=2.7.2 -pkgrel=0 +_verbase=${pkgver%.*} +pkgrel=1 pkgdesc="A high-level scripting language" url="http://www.python.org" arch="all" license="custom" +replaces="python-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-tests py-gdbm:gdbm " @@ -52,6 +54,14 @@ _mv_files() { done } +dev() { + # pyconfig.h is needed runtime so we move it back + default_dev + mkdir -p "$pkgdir"/usr/include/python$_verbase + mv "$subpkgdir"/usr/include/python$_verbase/pyconfig.h \ + "$pkgdir"/usr/include/python$_verbase/ +} + tests() { pkgdesc="The test modules from the main python package" cd "$pkgdir" |