summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Gahde2016-09-26 11:57:14 +0200
committerJakob Gahde2016-09-26 11:57:14 +0200
commit6943570711369a8999332a79bf8e905b78d11b1a (patch)
treee18b07507bef878ebcce5955a70dca447dd823a5
parentf84a4ab7fca1a10eead5e3f94abfd8a820f220e5 (diff)
downloadaur-6943570711369a8999332a79bf8e905b78d11b1a.tar.gz
lib32-libpaper 1.1.24-1: New package
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD44
2 files changed, 23 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dd4bbddc03f..ebe1612f1a6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,15 @@
# Generated by mksrcinfo v8
-# Mon Sep 26 09:46:02 UTC 2016
-pkgbase = libpaper
- pkgdesc = Library for handling paper characteristics
+# Mon Sep 26 09:56:31 UTC 2016
+pkgbase = lib32-libpaper
+ pkgdesc = Library for handling paper characteristics (32-bit)
pkgver = 1.1.24
- pkgrel = 9
+ pkgrel = 1
url = http://packages.debian.org/unstable/source/libpaper
arch = x86_64
- arch = i686
license = GPL
- depends = sh
- depends = run-parts
- backup = etc/papersize
+ depends = lib32-glibc
source = http://ftp.de.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.24+nmu4.tar.gz
md5sums = 155d2e589e2f4ef163de8fbbc5d3dd1e
-pkgname = libpaper
+pkgname = lib32-libpaper
diff --git a/PKGBUILD b/PKGBUILD
index 331beb4a29f..a49c07d1efb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,48 +1,38 @@
-# $Id$
-# Maintainer: AndyRTR <andyrtr@archlinux.org>
-
+# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+# Contributor: AndyRTR <andyrtr@archlinux.org>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: royrocks <royrocks13@gmail.com>
-pkgname=libpaper
+_pkgname=libpaper
+pkgname=lib32-${_pkgname}
pkgver=1.1.24
-pkgrel=9
-pkgdesc='Library for handling paper characteristics'
-arch=('x86_64' 'i686')
+pkgrel=1
+pkgdesc='Library for handling paper characteristics (32-bit)'
+arch=('x86_64')
url='http://packages.debian.org/unstable/source/libpaper'
license=('GPL')
-depends=('sh' 'run-parts')
-backup=('etc/papersize')
-source=("http://ftp.de.debian.org/debian/pool/main/libp/$pkgname/${pkgname}_$pkgver+nmu4.tar.gz")
+depends=('lib32-glibc')
+source=("http://ftp.de.debian.org/debian/pool/main/libp/${_pkgname}/${_pkgname}_${pkgver}+nmu4.tar.gz")
md5sums=('155d2e589e2f4ef163de8fbbc5d3dd1e')
build() {
- cd "$pkgname-$pkgver+nmu4"
+ cd "${srcdir}/${_pkgname}-${pkgver}+nmu4"
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./configure \
--prefix=/usr \
+ --libdir=/usr/lib32 \
--sysconfdir=/etc \
--sbindir=/usr/bin
make
}
package() {
- cd "$pkgname-$pkgver+nmu4"
- 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
+ cd "${srcdir}/${_pkgname}-${pkgver}+nmu4"
- # 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
+ make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}/usr/"{bin,include,share}
}