# Maintainer: Andrew Sun # Contributor: Jakob Gahde # Contributor: AndyRTR # Contributor: Alexander Rødseth # Contributor: Mateusz Herych # Contributor: royrocks _pkgname=libpaper pkgname=lib32-${_pkgname} pkgver=1.1.28 pkgrel=1 pkgdesc='Library for handling paper characteristics (32-bit)' arch=('x86_64') url='https://packages.debian.org/unstable/source/libpaper' license=('GPL') depends=('lib32-glibc' 'libpaper') makedepends=('gcc-multilib') source=("http://ftp.de.debian.org/debian/pool/main/libp/${_pkgname}/${_pkgname}_${pkgver}.tar.gz") sha256sums=('c8bb946ec93d3c2c72bbb1d7257e90172a22a44a07a07fb6b802a5bb2c95fddc') prepare() { cd "${srcdir}/${_pkgname}-${pkgver}" autoreconf -vfi } build() { cd "${srcdir}/${_pkgname}-${pkgver}" export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" ./configure \ --prefix=/usr \ --libdir=/usr/lib32 \ --sysconfdir=/etc \ --sbindir=/usr/bin make } package() { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install rm -rf "${pkgdir}/usr/"{bin,include,share} }