[arch-commits] Commit in yelp/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Tue Sep 27 19:56:42 UTC 2016
Date: Tuesday, September 27, 2016 @ 19:56:41
Author: heftig
Revision: 277142
3.22.0+1+gfabd8eb-1
Modified:
yelp/trunk/PKGBUILD
----------+
PKGBUILD | 47 ++++++++++++++++++++++++++++++-----------------
1 file changed, 30 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-09-27 19:55:47 UTC (rev 277141)
+++ PKGBUILD 2016-09-27 19:56:41 UTC (rev 277142)
@@ -3,29 +3,42 @@
# Contributor: Jan de Groot <jgc at archlinux.org>
pkgname=yelp
-pkgver=3.20.1
+pkgver=3.22.0+1+gfabd8eb
pkgrel=1
-pkgdesc="A help browser for GNOME"
-arch=('i686' 'x86_64')
-depends=('webkit2gtk' 'yelp-xsl' 'libxslt' 'xz' 'bzip2'
- 'desktop-file-utils' 'dconf')
-makedepends=('intltool' 'gtk-doc' 'itstool')
-groups=('gnome')
-license=('GPL')
-options=('!emptydirs')
-url="http://www.gnome.org"
-source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('dda0b051ad32908cb9d894d1db3ffdac69b21849b8a6a9a74d9669b017f608c2')
+pkgdesc="Get help with GNOME"
+url="https://wiki.gnome.org/Apps/Yelp"
+license=(GPL)
+arch=(i686 x86_64)
+depends=(webkit2gtk yelp-xsl libxslt xz bzip2)
+makedepends=(intltool gtk-doc itstool autoconf-archive git xorg-server-xvfb)
+groups=(gnome)
+_commit=fabd8ebe803e54f654d4930e26dbf695881f52f5 # master
+source=("git://git.gnome.org/yelp#commit=$_commit")
+sha256sums=('SKIP')
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+ # Fixup missing tag for pkgver()
+ git tag -f 3.22.0 9ae6e5a2ad3ea6709d31d110c4cfd160d600ee4f
+ NOCONFIGURE=1 ./autogen.sh
+}
+
build() {
- cd $pkgname-$pkgver
- ./configure --prefix=/usr --sysconfdir=/etc \
- --localstatedir=/var --disable-static
+ cd $pkgname
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-static --enable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
- make
+
+ # Documentation generation segfaults without X11
+ xvfb-run -a -n 81 -s "-extension GLX -screen 0 1280x1024x24" make
}
package() {
- cd $pkgname-$pkgver
+ cd $pkgname
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list