summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorandyrtr2014-01-23 16:54:21 +0000
committersvntogit2014-01-23 16:54:21 +0000
commit83bc2f9edbf616b439209dcd3919d645e263011f (patch)
treeb67dc6f38855bc25f767e5c1fcadd965fb7b4212
parent74be67c863b38e6fd29e747a15e8484018120770 (diff)
downloadaur-83bc2f9edbf616b439209dcd3919d645e263011f.tar.gz
upgpkg: libpaper 1.1.24-7
add systemwide config file for default papersize, add directory for 3rd party files, add localisation messages git-svn-id: file:///srv/repos/svn-packages/svn@204594 eb2447ed-0c53-47e4-bac8-5bc4a241df78
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD21
2 files changed, 21 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9af514651a9..a73dbd079e7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,12 +3,13 @@
pkgbase = libpaper
pkgdesc = Library for handling paper characteristics
pkgver = 1.1.24
- pkgrel = 6
+ pkgrel = 7
url = http://packages.debian.org/unstable/source/libpaper
arch = x86_64
arch = i686
license = GPL
depends = sh
+ backup = etc/papersize
source = http://ftp.de.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.24+nmu2.tar.gz
sha256sums = c5bdd6d9dff179699160675dbb61651d9b3158f6da27558fdaba00e7c427ba96
diff --git a/PKGBUILD b/PKGBUILD
index 93ed0bb6683..232198447e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,12 +7,13 @@
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')
@@ -27,5 +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
+
+ # 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
}