From e29c7b67938ff9384d304c36aa6259d694549933 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 26 Mar 2014 14:48:22 +0000 Subject: libpaper: initial inclusion. dep of cups --- abs/extra/libpaper/PKGBUILD | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 abs/extra/libpaper/PKGBUILD diff --git a/abs/extra/libpaper/PKGBUILD b/abs/extra/libpaper/PKGBUILD new file mode 100644 index 0000000..2321984 --- /dev/null +++ b/abs/extra/libpaper/PKGBUILD @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: AndyRTR + +# Contributor: Alexander Rødseth +# Contributor: Mateusz Herych +# Contributor: royrocks + +pkgname=libpaper +pkgver=1.1.24 +pkgrel=7 +pkgdesc='Library for handling paper characteristics' +arch=('x86_64' 'i686') +url='http://packages.debian.org/unstable/source/libpaper' +license=('GPL') +depends=('sh') +backup=('etc/papersize') +source=("http://ftp.de.debian.org/debian/pool/main/libp/$pkgname/${pkgname}_$pkgver+nmu2.tar.gz") +sha256sums=('c5bdd6d9dff179699160675dbb61651d9b3158f6da27558fdaba00e7c427ba96') + +build() { + cd "$pkgname-$pkgver+nmu2" + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/usr/bin + make +} + +package() { + cd "$pkgname-$pkgver+nmu2" + make DESTDIR="$pkgdir" install + + # add systemwide default papersize read by many office applications + install -dm 755 $pkgdir/etc + echo '# Simply write the paper name. See papersize(5) for possible values' > $pkgdir/etc/papersize + + # add libpaper.d directory other packages can use to store files + install -dm 755 $pkgdir/etc/libpaper.d + + # add localisation + pushd debian/po + for i in `ls *.po`; do + install -dm 755 ${pkgdir}/usr/share/locale/${i%.po}/LC_MESSAGES/; + msgfmt $i -o ${pkgdir}/usr/share/locale/${i%.po}/LC_MESSAGES/${pkgname}.mo; + done + popd +} -- cgit v0.12