mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-25 11:22:30 +01:00
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
|
|
pkgname=python3
|
|
pkgver=3.3.0
|
|
_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="2e7533b4009ac4adae62a7797a442e7a Python-3.3.0.tar.xz"
|
|
sha256sums="09994d2885a8ef61b4b2389527a9805a4a05e3e0f121dbc8e4222f9010f5bbd7 Python-3.3.0.tar.xz"
|
|
sha512sums="36aacc516d7486c8123656171a9400e3881146464abaa56b8dd1c8e3d0c1c31e305529157eacf6e29e3dd0a065c7ff8452addd1d178578bf8db4c9f5c1b7380f Python-3.3.0.tar.xz"
|