summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkj-sh6042024-06-30 07:12:16 -0400
committerkj-sh6042024-06-30 07:12:16 -0400
commitdd9e6c2ee2d3e6bbfb89e5a242fc94b1d7577110 (patch)
tree56e4d379b556e573a2df5f7f1edafd15f91a5b0c
parent7af675a001572a0f0714179972d455149ec07a0e (diff)
kj-gitbot: rarian/
-rw-r--r--rarian/.SRCINFO15
-rw-r--r--rarian/.gitignore6
-rw-r--r--rarian/PKGBUILD33
-rw-r--r--rarian/user-segfault.patch14
4 files changed, 68 insertions, 0 deletions
diff --git a/rarian/.SRCINFO b/rarian/.SRCINFO
new file mode 100644
index 0000000..73b15c4
--- /dev/null
+++ b/rarian/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = rarian
+ pkgdesc = Documentation meta-data library, designed as a replacement for Scrollkeeper.
+ pkgver = 0.8.1
+ pkgrel = 604
+ url = https://rarian.freedesktop.org/
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = libxslt
+ depends = gcc-libs
+ depends = sh
+ source = https://download.gnome.org/sources/rarian/0.8/rarian-0.8.1.tar.bz2
+ source = user-segfault.patch
+
+pkgname = rarian
diff --git a/rarian/.gitignore b/rarian/.gitignore
new file mode 100644
index 0000000..6b2b2ea
--- /dev/null
+++ b/rarian/.gitignore
@@ -0,0 +1,6 @@
+pkg/
+src/
+*.tar
+*.tar.zst
+*.tar.gz
+*.tar.xz
diff --git a/rarian/PKGBUILD b/rarian/PKGBUILD
new file mode 100644
index 0000000..6267576
--- /dev/null
+++ b/rarian/PKGBUILD
@@ -0,0 +1,33 @@
+pkgname=rarian
+pkgver=0.8.1
+pkgrel=604
+pkgdesc="Documentation meta-data library, designed as a replacement for Scrollkeeper."
+arch=('x86_64' 'i686')
+url="https://rarian.freedesktop.org/"
+license=('GPL')
+depends=('gcc-libs' 'sh')
+makedepends=('libxslt')
+
+# use this source when PKGBUILD breaks in the future:
+# source=(https://aedrielkylejavier.me/assets/${pkgname}/0.8/${pkgname}-${pkgver}.tar.bz2
+
+source=(https://download.gnome.org/sources/${pkgname}/0.8/${pkgname}-${pkgver}.tar.bz2
+ user-segfault.patch)
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np0 -i ../user-segfault.patch
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --disable-static
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/rarian/user-segfault.patch b/rarian/user-segfault.patch
new file mode 100644
index 0000000..3311cec
--- /dev/null
+++ b/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;