mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/python3: new aport
This commit is contained in:
parent
6d7cae2c75
commit
ffcceb29f2
48
testing/python3/APKBUILD
Normal file
48
testing/python3/APKBUILD
Normal file
@ -0,0 +1,48 @@
|
||||
# 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
|
||||
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"
|
||||
Loading…
x
Reference in New Issue
Block a user