aboutsummaryrefslogtreecommitdiffstats
path: root/main/tk
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-09 12:15:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-09 12:23:32 +0000
commitc5afb05a2f9e0b6919d1614f283d36cde3a0e317 (patch)
tree0df9c12d9fc79374b978a93643934082e6940435 /main/tk
parent10384b996ced1290b48420a8aac10787f96322e6 (diff)
downloadaports-c5afb05a2f9e0b6919d1614f283d36cde3a0e317.tar.bz2
aports-c5afb05a2f9e0b6919d1614f283d36cde3a0e317.tar.xz
main/tk: moved from testing
Diffstat (limited to 'main/tk')
-rw-r--r--main/tk/APKBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/main/tk/APKBUILD b/main/tk/APKBUILD
new file mode 100644
index 0000000000..85399666df
--- /dev/null
+++ b/main/tk/APKBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
+pkgname=tk
+pkgver=8.6.3
+pkgrel=0
+pkgdesc="GUI toolkit for the Tcl scripting language"
+url="http://tcl.sourceforge.net/"
+arch="all"
+license="TCL"
+depends=
+depends_dev="tcl-dev libx11-dev libxft-dev libpng-dev"
+makedepends="$depends_dev pkgconfig"
+source="http://downloads.sourceforge.net/sourceforge/tcl/$pkgname$pkgver-src.tar.gz
+ "
+subpackages="$pkgname-doc $pkgname-dev"
+
+_major=${pkgver%.*}
+_builddir="$srcdir"/tk${pkgver}/unix
+
+prepare() {
+ cd "$srcdir"/tk${pkgver}
+ for i in $source; do
+ case $i in
+ *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ local _64bit="--disable-64bit"
+ case "$CARCH" in
+ x86_64) _64bit="--enable-64bit";;
+ esac
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ $_64bit \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ export LD_LIBRARY_PATH="$_builddir"
+ make -j1 INSTALL_ROOT="${pkgdir}" install install-private-headers || return 1
+
+ ln -sf wish${_major} "${pkgdir}"/usr/bin/wish
+ install -Dm644 ../license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ # remove buildroot traces
+ find "$pkgdir" -name '*Config.sh' | xargs sed -i -e "s#${srcdir}#/usr/src#"
+}
+
+dev() {
+ default_dev
+ cd $pkgdir
+ for i in $(find . -name '*.c' -o -name '*Config.sh'); do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv $i "$subpkgdir"/${i%/*}/ || return 1
+ done
+}
+
+md5sums="85ca4dbf4dcc19777fd456f6ee5d0221 tk8.6.3-src.tar.gz"
+sha256sums="ba15d56ac27d8c0a7b1a983915a47e0f635199b9473cf6e10fbce1fc73fd8333 tk8.6.3-src.tar.gz"
+sha512sums="3bd577252bb20d1e9caff12dbec66b63c0bbd81bfcaada0e847a9f54608217e698bbf503f722120b9e8a6c27e50a122c50d24f8b01bb2a22735ebef8e2be7b47 tk8.6.3-src.tar.gz"