summaryrefslogtreecommitdiffstats
path: root/abs/extra/libpaper/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-03-26 14:48:22 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-03-26 14:48:22 (GMT)
commite29c7b67938ff9384d304c36aa6259d694549933 (patch)
treef1648891b071278a67e1687a0d6425214d91c108 /abs/extra/libpaper/PKGBUILD
parent35e1e2257357e7607c08341de205c8ef302a9fdc (diff)
downloadlinhes_pkgbuild-e29c7b67938ff9384d304c36aa6259d694549933.zip
linhes_pkgbuild-e29c7b67938ff9384d304c36aa6259d694549933.tar.gz
linhes_pkgbuild-e29c7b67938ff9384d304c36aa6259d694549933.tar.bz2
libpaper: initial inclusion. dep of cups
Diffstat (limited to 'abs/extra/libpaper/PKGBUILD')
-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
+}