blob: e8c9f9f35f800bb76c75eb9d1464e08e4147c2f4 (
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
48
49
|
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=python3
pkgver=3.1.3
pkgrel=0
pkgdesc="A high-level scripting language"
url="http://www.python.org"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc" #$pkgname-tests"
depends=
makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev
sqlite-dev libffi-dev tcl-dev"
source="http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.bz2"
build() {
cd "$srcdir/Python-$pkgver"
./configure --prefix=/usr \
--enable-shared \
--with-threads \
--with-system-ffi \
--enable-unicode=ucs4 \
--with-dbmliborder=ndbm \
|| return 1
make || return 1
}
package() {
cd "$srcdir/Python-$pkgver"
make -j1 DESTDIR="$pkgdir" install
mv "$pkgdir"/usr/bin/2to3 "$pkgdir"/usr/bin/2to3-3.1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
#_mv_files() {
# local i
# for i in "$@"; do
# mkdir -p "$subpkgdir"/${i%/*}
# mv -f "$pkgdir"/$i "$subpkgdir"/$i || return 1
# done
#}
#
#tests() {
# pkgdesc="The test modules from the main python package"
# cd "$pkgdir"
# _mv_files $(find usr/lib -type d -name 'test*')
#}
md5sums="ad5e5f1c07e829321e0a015f8cafe245 Python-3.1.3.tar.bz2"
|