diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-09-10 14:53:02 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-09-10 14:53:02 +0200 |
commit | ced552edf665cd23d8bf1097075551ac1280cf31 (patch) | |
tree | 226af12f63ec454acd7cec9eac9db877e210be0b /main/tk | |
parent | b4e07e66359089f8b24b86f88cf91ffc1cea8476 (diff) | |
download | aports-ced552edf665cd23d8bf1097075551ac1280cf31.tar.bz2 aports-ced552edf665cd23d8bf1097075551ac1280cf31.tar.xz |
main/tk: move demos to -doc subpackage
Diffstat (limited to 'main/tk')
-rw-r--r-- | main/tk/APKBUILD | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/main/tk/APKBUILD b/main/tk/APKBUILD index 39458cda27..b748eeeda4 100644 --- a/main/tk/APKBUILD +++ b/main/tk/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Isaac Dunham <ibid.ag@gmail.com> pkgname=tk pkgver=8.6.6 -pkgrel=0 +pkgrel=1 pkgdesc="GUI toolkit for the Tcl scripting language" url="http://tcl.sourceforge.net/" arch="all" @@ -9,28 +9,20 @@ license="TCL" depends= depends_dev="tcl-dev libx11-dev libxft-dev fontconfig-dev" makedepends="$depends_dev libpng-dev" +subpackages="$pkgname-doc $pkgname-dev" 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 -} +builddir="$srcdir"/tk${pkgver}/unix build() { local _64bit="--disable-64bit" case "$CARCH" in x86_64) _64bit="--enable-64bit";; esac - cd "$_builddir" + + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -38,18 +30,24 @@ build() { --mandir=/usr/share/man \ $_64bit \ || return 1 - make || return 1 + make || return 1 } package() { - cd "$_builddir" - export LD_LIBRARY_PATH="$_builddir" + 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#" + + # move demos to -doc directory + mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/ + mv "$pkgdir"/usr/lib/tk${_major}/demos/ \ + "$pkgdir"/usr/share/doc/$pkgname/examples/ || return 1 } dev() { |