initial import
This commit is contained in:
64
tk/PKGBUILD
Normal file
64
tk/PKGBUILD
Normal file
@@ -0,0 +1,64 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=tk
|
||||
pkgver=8.6.11
|
||||
_debver=8.6.11
|
||||
_debrel=1
|
||||
pkgrel=1
|
||||
pkgdesc="A windowing toolkit for use with tcl"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://tcl.sourceforge.net/"
|
||||
license=('custom:Tcl')
|
||||
depends=("tcl=$pkgver" 'libxss' 'libxft')
|
||||
makedepends=('quilt')
|
||||
options=('staticlibs')
|
||||
source=(https://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz
|
||||
https://deb.debian.org/debian/pool/main/t/tk8.6/tk8.6_$_debver-$_debrel.debian.tar.xz)
|
||||
sha512sums=('2e11490f2f51ef7e723661dd91c95622234fb97850e80d8ecd564be8c28f7c8fb0334a97cf8267af9d68f63e4adea887a1a4eec8d2e807d6a970b5912f99d3f2'
|
||||
'2010db3a12e45eafe2b8c6b2a625023af933cbcafdb9da6bdd0cac376a15e28d3c60a7d362ce3d4fc606762faa576dc83cb3f9aeeada697bf6360810be2c7aed')
|
||||
|
||||
prepare() {
|
||||
cd tk$pkgver/unix
|
||||
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
# Doesn't apply and seems unimportant
|
||||
rm -v debian/patches/font-sizes.diff || true
|
||||
rm -v debian/patches/tkprivate.diff || true
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd tk$pkgver/unix
|
||||
[[ $CARCH == "x86_64" ]] && BIT="--enable-64bit"
|
||||
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-rpath $BIT
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd tk$pkgver/unix
|
||||
make INSTALL_ROOT="${pkgdir}" install install-private-headers
|
||||
ln -sf wish${pkgver%.*} "${pkgdir}/usr/bin/wish"
|
||||
ln -sf libtk${pkgver%.*}.so "${pkgdir}/usr/lib/libtk.so"
|
||||
install -Dm644 license.terms "${pkgdir}/usr/share/licenses/${pkgname}/license.terms"
|
||||
|
||||
# install private headers (FS#14388, FS#47616)
|
||||
cd ..
|
||||
for dir in compat generic generic/ttk unix; do
|
||||
install -dm755 "${pkgdir}"/usr/include/tk-private/$dir
|
||||
install -m644 -t "${pkgdir}"/usr/include/tk-private/$dir $dir/*.h
|
||||
done
|
||||
|
||||
# remove buildroot traces
|
||||
sed -e "s#${srcdir}/tk${pkgver}/unix#/usr/lib#" \
|
||||
-e "s#${srcdir}/tk${pkgver}#/usr/include#" \
|
||||
-i "${pkgdir}/usr/lib/tkConfig.sh"
|
||||
}
|
||||
Reference in New Issue
Block a user