From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/rarian/PKGBUILD | 29 +++++++++++++++++++++++++++++ extra/rarian/user-segfault.patch | 14 ++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 extra/rarian/PKGBUILD create mode 100644 extra/rarian/user-segfault.patch (limited to 'extra/rarian') diff --git a/extra/rarian/PKGBUILD b/extra/rarian/PKGBUILD new file mode 100644 index 000000000..b83caff46 --- /dev/null +++ b/extra/rarian/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 11986 2008-09-06 21:33:59Z jgc $ +# Maintainer: Jan de Groot + +pkgname=rarian +pkgver=0.8.1 +pkgrel=1 +pkgdesc="Documentation meta-data library, designed as a replacement for Scrollkeeper." +arch=('i686' 'x86_64') +url="http://rarian.freedesktop.org/" +license=('GPL') +depends=('gcc-libs') +makedepends=('libxslt') +conflicts=('scrollkeeper') +provides=('scrollkeeper') +replaces=('scrollkeeper') +options=('!libtool') +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.8/${pkgname}-${pkgver}.tar.bz2 + user-segfault.patch) +md5sums=('75091185e13da67a0ff4279de1757b94' + '457e9827197009cfa360911fe49a5ad7') + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + patch -p0 -i ${srcdir}/user-segfault.patch || return 1 + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static || return 1 + make || return 1 + make DESTDIR=${startdir}/pkg install || return 1 +} diff --git a/extra/rarian/user-segfault.patch b/extra/rarian/user-segfault.patch new file mode 100644 index 000000000..3311cecdd --- /dev/null +++ b/extra/rarian/user-segfault.patch @@ -0,0 +1,14 @@ +--- util/rarian-sk-get-cl.cpp~ 2008-07-28 19:23:28.000000000 +0200 ++++ util/rarian-sk-get-cl.cpp 2008-07-28 19:23:28.000000000 +0200 +@@ -160,6 +160,11 @@ + { + char *filename = NULL; + char *user = getenv ("USERNAME"); ++ ++ if (user == NULL) { ++ user = getenv ("USER"); ++ } ++ + char *basepath = NULL; + int i=0; + int last = 0; -- cgit v1.2.3-54-g00ecf