# Maintainer: Gabriel Souza Franco # Contributor: Stefan Husmann # Contributor: Martin C. Doege # Contributor: kotyz pkgname=lib32-tkimg pkgver=1.4.14 pkgrel=1 pkgdesc='Provides the handling of several image formats beyond the standard formats in Tk (32-bit)' url='https://wiki.tcl-lang.org/page/Img' arch=('x86_64') license=('BSD') depends=('lib32-zlib' 'lib32-libjpeg' 'lib32-libpng' 'lib32-libtiff' 'lib32-tcl' 'lib32-tk' 'tcllib') source=(http://downloads.sourceforge.net/tkimg/${pkgver%.*}/Img-$pkgver-Source.tar.gz) sha1sums=('e1ffc016124d452e7a8bd02fb0aa48b706addcb6') build() { cd "$srcdir/Img-$pkgver-Source" export CC='gcc -m32' export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' ./configure --prefix=/usr --libdir=/usr/lib32 --enable-threads make } package() { cd "$srcdir/Img-$pkgver-Source" make INSTALL_ROOT="$pkgdir" install rm -rf "$pkgdir/usr/"{include,share} }