Commit 99dd043c authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

main/python: rename to python2

parent 2c8afec9
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=python
pkgname=python2
pkgver=2.7.12
_verbase=${pkgver%.*}
pkgrel=0
......@@ -7,7 +7,7 @@ pkgdesc="A high-level scripting language"
url="http://www.python.org"
arch="all"
license="custom"
replaces="python-dev"
provides="python=$pkgver-r$pkgrel"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-tests
py-gdbm:gdbm"
depends=""
......@@ -18,12 +18,7 @@ source="http://www.$pkgname.org/ftp/$pkgname/$pkgver/Python-$pkgver.tar.xz
unchecked-ioctl.patch"
prepare() {
cd "$srcdir/Python-$pkgver"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1
esac
done
default_prepare
# Make sure we use system libs
rm -r Modules/expat Modules/_ctypes/libffi* Modules/zlib || return 1
......@@ -73,6 +68,8 @@ _mv_files() {
}
dev() {
provides="python-dev=$pkgver-r$pkgrel"
# pyconfig.h is needed runtime so we move it back
default_dev
mkdir -p "$pkgdir"/usr/include/python$_verbase
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment