# Maintainer: Dario Ostuni # Maintainer: Vincent Grande pkgname=lib32-tslib _pkgname=tslib pkgver=1.21 pkgrel=1 pkgdesc="Touchscreen Access Library (32-bit)" arch=('x86_64') url="https://github.com/kergoth/tslib" license=('GPL2') depends=('lib32-glibc') makedepends=() source=("https://github.com/kergoth/tslib/releases/download/$pkgver/$_pkgname-$pkgver.tar.xz") sha384sums=('fc007a0d6a1e811cc70c5882710413d87fb5ef30439c36e7b90652d776feca44245c6d5ccddb94efa0277c61378f4126') build() { cd $_pkgname-$pkgver export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" ./autogen.sh ./configure --prefix=/usr --libdir=/usr/lib32 --sysconfdir=/etc make } package() { cd $_pkgname-$pkgver make DESTDIR="$pkgdir" install rm -rf "${pkgdir}"/usr/{include,share,bin} rm -rf "${pkgdir}"/etc }