aboutsummaryrefslogtreecommitdiffstats
path: root/main/python3
diff options
context:
space:
mode:
Diffstat (limited to 'main/python3')
-rw-r--r--main/python3/APKBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/main/python3/APKBUILD b/main/python3/APKBUILD
index 188c09c737..e53e4fe37b 100644
--- a/main/python3/APKBUILD
+++ b/main/python3/APKBUILD
@@ -4,15 +4,16 @@
pkgname=python3
pkgver=3.5.2
_basever="${pkgver%.*}"
-pkgrel=1
+pkgrel=2
pkgdesc="A high-level scripting language"
url="http://www.python.org"
arch="all"
license="custom"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-tests"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tests py3-tkinter:tkinter"
depends=""
makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev xz-dev
- sqlite-dev libffi-dev tcl-dev linux-headers gdbm-dev readline-dev"
+ sqlite-dev libffi-dev tcl-dev linux-headers gdbm-dev readline-dev
+ tk tk-dev"
source="http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.xz"
builddir="$srcdir/Python-$pkgver"
@@ -80,6 +81,14 @@ tests() {
"$subpkgdir"/usr/lib/python$_basever/
}
+tkinter() {
+ pkgdesc="A graphical user interface for the Python"
+ local libdir="usr/lib/python$_basever/lib-dynload"
+
+ mkdir -p "$subpkgdir"/$libdir
+ mv "$pkgdir"/$libdir/_tkinter.*.so "$subpkgdir"/$libdir/
+}
+
md5sums="8906efbacfcdc7c3c9198aeefafd159e Python-3.5.2.tar.xz"
sha256sums="0010f56100b9b74259ebcd5d4b295a32324b58b517403a10d1a2aa7cb22bca40 Python-3.5.2.tar.xz"
sha512sums="c07c3366f1c81e214241444bb9da6db9d11da32ad66bfa29cdad5a3b2e34e4d870bda6d4ce3c3910b582942e91f1d8c8a1c1a7b9464cc147b83c9e0007012742 Python-3.5.2.tar.xz"