summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/extra/libpaper/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
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 <andyrtr@archlinux.org>
+
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Mateusz Herych <heniekk@gmail.com>
+# Contributor: royrocks <royrocks13@gmail.com>
+
+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
+}