blob: d71984d19f9ee68b0f8967368ccff2b4cc0bc4ab (
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
50
51
52
53
54
55
56
57
|
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=python3
pkgver=3.3.2
_pkgver=3.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.xz"
_builddir="$srcdir"/Python-$pkgver
build() {
cd "$_builddir"
./configure \
--prefix=/usr \
--enable-shared \
--with-threads \
--with-system-ffi \
--enable-unicode=ucs4 \
--with-dbmliborder=ndbm \
--disable-rpath \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
mv "$pkgdir"/usr/bin/2to3 "$pkgdir"/usr/bin/2to3-3.3
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
_mv_files() {
cd "$pkgdir"/usr/lib/python$_pkgver
for i in */test */tests; do
mkdir -p "$subpkgdir"/usr/lib/python$_pkgver/"$i"
mv "$i"/* "$subpkgdir"/usr/lib/python$_pkgver/"$i"
rm -rf "$i"
done
mv "$pkgdir"/usr/lib/python$_pkgver/test "$subpkgdir"/usr/lib/python$_pkgver
}
tests() {
pkgdesc="The test modules from the main python package"
arch="noarch"
cd "$pkgdir"
_mv_files
}
md5sums="c94b78ea3b68a9bbc9906af4d5b4fdc7 Python-3.3.2.tar.xz"
sha256sums="745b32c4b810e36fa66346198dbc2e313524fd68888922b85005656825e64b43 Python-3.3.2.tar.xz"
sha512sums="2855cfed63f2e68cdfc02dc526f68402e893baf95146ba8254619b5a8e3bfbc07a3b7f089efe2450dc1b0bb1328c229b66664bde8ebda10a1f19fc02232ba74d Python-3.3.2.tar.xz"
|