1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 # Contributor: Alexander Rødseth <rodseth@gmail.com>
4 # Contributor: Mateusz Herych <heniekk@gmail.com>
5 # Contributor: royrocks <royrocks13@gmail.com>
10 pkgdesc='Library for handling paper characteristics'
12 url='https://packages.debian.org/unstable/source/libpaper'
14 depends=('sh' 'run-parts')
15 backup=('etc/papersize')
16 #source=("https://debian.org/debian/pool/main/libp/$pkgname/${pkgname}_$pkgver+nmu5.tar.gz") # broken cert
17 source=("http://ftp.de.debian.org/debian/pool/main/libp/$pkgname/${pkgname}_$pkgver.tar.gz")
18 sha256sums=('c8bb946ec93d3c2c72bbb1d7257e90172a22a44a07a07fb6b802a5bb2c95fddc')
36 make DESTDIR="$pkgdir" install
38 # add systemwide default papersize read by many office applications
39 install -dm 755 "$pkgdir"/etc
40 echo '# Simply write the paper name. See papersize(5) for possible values' > "$pkgdir"/etc/papersize
42 # add libpaper.d directory other packages can use to store files
43 install -dm 755 "$pkgdir"/etc/libpaper.d
47 for i in `ls *.po`; do
48 install -dm 755 "${pkgdir}"/usr/share/locale/${i%.po}/LC_MESSAGES/;
49 msgfmt $i -o "${pkgdir}"/usr/share/locale/${i%.po}/LC_MESSAGES/${pkgname}.mo;