summaryrefslogtreecommitdiff
path: root/user/rarian
diff options
context:
space:
mode:
Diffstat (limited to 'user/rarian')
-rw-r--r--user/rarian/APKBUILD41
-rw-r--r--user/rarian/user-segfault.patch14
2 files changed, 55 insertions, 0 deletions
diff --git a/user/rarian/APKBUILD b/user/rarian/APKBUILD
new file mode 100644
index 000000000..c3722414e
--- /dev/null
+++ b/user/rarian/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer:
+pkgname=rarian
+pkgver=0.8.1
+pkgrel=8
+pkgdesc="Documentation metadata library"
+url="https://rarian.freedesktop.org/"
+arch="all"
+options="!check" # No test suite.
+license="GPL-2.0+ AND LGPL-2.1+ AND Zlib"
+depends="bash"
+makedepends="libxslt-dev"
+subpackages="$pkgname-dev"
+source="https://download.gnome.org/sources/$pkgname/0.8/$pkgname-$pkgver.tar.bz2
+ user-segfault.patch"
+
+prepare() {
+ cd "$builddir"
+ update_config_sub
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-scrollkeeper-compat \
+ --disable-static
+ make
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
+}
+
+sha512sums="64f3e7fbe423e45a59453805fe6b4116e0ffad43c7e88fe362d76a326c70936c6b46c4a4dc57cf43e3535c16f2f07fa1b2affa0aaeae637ee3ede48850c1fc60 rarian-0.8.1.tar.bz2
+d5aa41c69e1ba43850e58914526b2f93377a7f293729dc6fb39a9daa7321a70e9eb5c417ec8705618dfd69628efc86776e425eed55ceae4a003a8cd074592166 user-segfault.patch"
diff --git a/user/rarian/user-segfault.patch b/user/rarian/user-segfault.patch
new file mode 100644
index 000000000..29ab1e52c
--- /dev/null
+++ b/user/rarian/user-segfault.patch
@@ -0,0 +1,14 @@
+--- rarian-0.8.1/util/rarian-sk-get-cl.cpp~ 2008-07-28 19:23:28.000000000 +0200
++++ rarian-0.8.1/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;