From 3dbfc8e79843f0bc26e8bdf76f873c8bc562b1db Mon Sep 17 00:00:00 2001 From: oscar Date: Thu, 23 Oct 2014 23:01:01 +0200 Subject: [PATCH] tktable: new package --- mingw-w64-tktable/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 mingw-w64-tktable/PKGBUILD diff --git a/mingw-w64-tktable/PKGBUILD b/mingw-w64-tktable/PKGBUILD new file mode 100644 index 0000000000..1580ebe343 --- /dev/null +++ b/mingw-w64-tktable/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Oscar Fuentes +# Based on Arch's PKGBUILD + +_realname=tktable +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +_pkgnameactual=Tktable +pkgver=2.10 +pkgrel=1 +pkgdesc="A full-featured 2D table widget for Tk." +arch=('any') +url="http://tktable.sourceforge.net/" +license=('custom') +depends=("${MINGW_PACKAGE_PREFIX}-tk") +source=("http://sourceforge.net/projects/tktable/files/${_realname}/$pkgver/${_pkgnameactual}${pkgver}.tar.gz") +md5sums=('ecdd96b39ad49b820bf084eb1c786f66') + +build() { + mkdir -p "${srcdir}/build-${CARCH}" + cd "${srcdir}/build-${CARCH}" + + [ "${MINGW_CHOST}" = 'x86_64-w64-mingw32' ] && enable64bit='--enable-64bit' + + # Avoid crash when the application used by not linking to + # libgcc-s-dw2-1.dll: + if [ "${MINGW_CHOST}" != 'x86_64-w64-mingw32' ]; then + if [ -z "$CC" ]; then + export CC="gcc -static-libgcc" + else + export CC="$CC -static-libgcc" + fi + fi + + "${srcdir}"/${_pkgnameactual}${pkgver}/configure \ + --prefix=${MINGW_PREFIX} \ + $enable64bit + make +} + +package() { + cd "${srcdir}/build-${CARCH}" + make DESTDIR="$pkgdir/" install +}