summaryrefslogtreecommitdiff
path: root/extra/libpaper
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-24 03:49:02 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-24 03:49:02 +0000
commit58a72e3d6c07ca57231ada1576ba86af346197d4 (patch)
tree1e2ab396a5c53f24fedef939833ca53fd8566847 /extra/libpaper
parent1a04b89cbb8e27e4622005c896745498af51ef45 (diff)
Fri Jan 24 03:41:27 UTC 2014
Diffstat (limited to 'extra/libpaper')
-rw-r--r--extra/libpaper/PKGBUILD29
1 files changed, 23 insertions, 6 deletions
diff --git a/extra/libpaper/PKGBUILD b/extra/libpaper/PKGBUILD
index 67b0e0731..869f06b11 100644
--- a/extra/libpaper/PKGBUILD
+++ b/extra/libpaper/PKGBUILD
@@ -1,16 +1,19 @@
-# $Id: PKGBUILD 204542 2014-01-22 12:18:23Z andyrtr $
-# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# $Id: PKGBUILD 204595 2014-01-23 16:54:36Z andyrtr $
+# 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=6
+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')
@@ -25,7 +28,21 @@ build() {
}
package() {
- make -C "$pkgname-$pkgver+nmu2" DESTDIR="$pkgdir" install
-}
+ 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
-# vim:set ts=2 sw=2 et:
+ # 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
+}