[arch-commits] Commit in libgxps/trunk (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Wed Sep 21 11:59:57 UTC 2016
Date: Wednesday, September 21, 2016 @ 11:59:57
Author: jgc
Revision: 276797
upgpkg: libgxps 0.2.4+12+g4709da9-1
Modified:
libgxps/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-09-21 09:56:09 UTC (rev 276796)
+++ PKGBUILD 2016-09-21 11:59:57 UTC (rev 276797)
@@ -1,8 +1,9 @@
# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
# Contributor: Ionut Biru <ibiru at archlinux.org>
pkgname=libgxps
-pkgver=0.2.4
+pkgver=0.2.4+12+g4709da9
pkgrel=1
pkgdesc="XPS Documents library"
url="https://wiki.gnome.org/Projects/libgxps"
@@ -9,18 +10,31 @@
arch=(i686 x86_64)
license=(GPL2)
depends=(cairo libarchive libjpeg-turbo libtiff lcms2)
-makedepends=(gobject-introspection gtk-doc)
-source=(http://download.gnome.org/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
-sha256sums=('e9d6aa02836d9d4823a51705d3e1dee6fc4bce11d72566024042cfaac56ec7a4')
+makedepends=(gobject-introspection gtk-doc git)
+_commit=4709da90210839ca8fdd424caa7be897f3be91bb
+source=("git://git.gnome.org/libgxps#commit=$_commit")
+sha256sums=('SKIP')
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+
build() {
- cd "$pkgname-$pkgver"
+ cd $pkgname
./configure --prefix=/usr --disable-static --enable-gtk-doc
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
- cd "$pkgname-$pkgver"
+ cd $pkgname
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list