summaryrefslogtreecommitdiffstats
path: root/main/python/APKBUILD
blob: 4e67b233db54a4856c393fae5774d2af3887648a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=python
pkgver=2.6.5
pkgrel=0
pkgdesc="A high-level scripting language"
url="http://www.python.org"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev !gettext"
source="http://www.$pkgname.org/ftp/$pkgname/$pkgver/Python-$pkgver.tar.bz2
	$pkgname-2.6-internal-expat.patch
	"

prepare() {
	cd "$srcdir/Python-$pkgver"
	for i in ../*.patch; do
		msg "Apply $i"
		patch -p1 < $i || return 1
	done
}

build() {
	cd "$srcdir/Python-$pkgver"
	./configure --prefix=/usr \
		--enable-shared \
		--with-threads \
		--enable-unicode \
		--disable-gdbm

	make || return 1
}

package() {
	cd "$srcdir/Python-$pkgver"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
md5sums="6bef0417e71a1a1737ccf5750420fdb3  Python-2.6.5.tar.bz2
9d64df5e0a6aed149a792c7bff16e3d9  python-2.6-internal-expat.patch"