tktable: new package

This commit is contained in:
oscar
2014-10-23 23:01:01 +02:00
parent 001adb262d
commit 3dbfc8e798

View File

@@ -0,0 +1,42 @@
# Maintainer: Oscar Fuentes <ofv@wanadoo.es>
# 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
}