[arch-commits] Commit in rarian/repos (3 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Jul 22 11:16:38 UTC 2020


    Date: Wednesday, July 22, 2020 @ 11:16:38
  Author: svenstaro
Revision: 664825

archrelease: copy trunk to community-x86_64

Added:
  rarian/repos/community-x86_64/
  rarian/repos/community-x86_64/PKGBUILD
    (from rev 664824, rarian/trunk/PKGBUILD)
  rarian/repos/community-x86_64/user-segfault.patch
    (from rev 664824, rarian/trunk/user-segfault.patch)

---------------------+
 PKGBUILD            |   36 ++++++++++++++++++++++++++++++++++++
 user-segfault.patch |   14 ++++++++++++++
 2 files changed, 50 insertions(+)

Copied: rarian/repos/community-x86_64/PKGBUILD (from rev 664824, rarian/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-07-22 11:16:38 UTC (rev 664825)
@@ -0,0 +1,36 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=rarian
+pkgver=0.8.1
+pkgrel=8
+pkgdesc="Documentation meta-data library, designed as a replacement for Scrollkeeper."
+arch=('x86_64')
+url="https://rarian.freedesktop.org/"
+license=('GPL')
+depends=('gcc-libs' 'sh')
+makedepends=('libxslt')
+source=(https://download.gnome.org/sources/${pkgname}/0.8/${pkgname}-${pkgver}.tar.bz2
+        user-segfault.patch)
+md5sums=('75091185e13da67a0ff4279de1757b94'
+         '457e9827197009cfa360911fe49a5ad7')
+sha256sums=('aafe886d46e467eb3414e91fa9e42955bd4b618c3e19c42c773026b205a84577'
+            '518b1834d4f44e92161f0cf2f72a6474f0ec687ea53562c64109df90d343fe71')
+
+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
+}

Copied: rarian/repos/community-x86_64/user-segfault.patch (from rev 664824, rarian/trunk/user-segfault.patch)
===================================================================
--- community-x86_64/user-segfault.patch	                        (rev 0)
+++ community-x86_64/user-segfault.patch	2020-07-22 11:16:38 UTC (rev 664825)
@@ -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;



More information about the arch-commits mailing list