OCaml 4.14.0 rebuild
[arch-packages.git] / libpaper / trunk / PKGBUILD
blobdc1c2f6e3c2048638f93e6c3861e5973f84c09ef
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>
7 pkgname=libpaper
8 pkgver=1.1.28
9 pkgrel=2
10 pkgdesc='Library for handling paper characteristics'
11 arch=('x86_64')
12 url='https://packages.debian.org/unstable/source/libpaper'
13 license=('GPL')
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')
20 prepare() {
21   cd "$pkgname-$pkgver"
22   autoreconf -vfi
25 build() {
26   cd "$pkgname-$pkgver"
27   ./configure \
28     --prefix=/usr \
29     --sysconfdir=/etc \
30     --sbindir=/usr/bin
31   make
34 package() {
35   cd "$pkgname-$pkgver"
36   make DESTDIR="$pkgdir" install
37   
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
45   # add localisation
46   pushd debian/po
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;
50   done
51   popd