#Packager: Dimitris Tzemos pkgname=libpaper pkgver=1.1.24+nmu2 pkgrel=1dj source=("http://ftp.de.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.24+nmu2.tar.gz") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname url="http://packages.qa.debian.org/libp/libpaper.html" doc=("README" "COPYING" "ChangeLog") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "libpaper (library for handling paper characteristics)" "The libpaper paper-handling library automates recognition of many" "different paper types and sizes for programs that need to deal with" "printed output." ) build() { cd $SRC/${pkgname}-${pkgver} # Set default papersize: a3, a4, a5, b5, letter, legal, executive, note, 11x17 PAPERSIZE=${PAPERSIZE:-a4} ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-static \ --build=$arch-slackware-linuxd make make install DESTDIR=$PKG # Create a /etc/papersize default file mkdir -p $PKG/etc echo $PAPERSIZE > $PKG/etc/papersize rm $PKG/usr/lib${LIBDIRSUFFIX}/libpaper.la }