aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zeitgeist
diff options
context:
space:
mode:
Diffstat (limited to 'testing/zeitgeist')
-rw-r--r--testing/zeitgeist/APKBUILD75
-rw-r--r--testing/zeitgeist/gettext_0.20.patch13
2 files changed, 88 insertions, 0 deletions
diff --git a/testing/zeitgeist/APKBUILD b/testing/zeitgeist/APKBUILD
new file mode 100644
index 0000000000..acea348cec
--- /dev/null
+++ b/testing/zeitgeist/APKBUILD
@@ -0,0 +1,75 @@
+# Maintainer: Luca Weiss <luca@z3ntu.xyz>
+pkgname=zeitgeist
+pkgver=1.0.2
+pkgrel=0
+pkgdesc="Activity logging framework"
+arch="all"
+url="https://zeitgeist.freedesktop.org/"
+license="LGPL-2.1-or-later"
+depends_dev="sqlite-dev gobject-introspection-dev xapian-core-dev telepathy-glib-dev
+ gtk+3.0-dev json-glib-dev"
+makedepends="$depends_dev autoconf automake gettext-dev libtool py3-rdflib vala git
+ raptor2"
+source="https://gitlab.freedesktop.org/zeitgeist/zeitgeist/-/archive/v$pkgver/zeitgeist-v$pkgver.tar.gz
+ gettext_0.20.patch"
+subpackages="
+ $pkgname-dev
+ $pkgname-doc
+ lib$pkgname:libs
+ py3-$pkgname:py3:noarch
+ $pkgname-bash-completion:bashcomp:noarch
+ "
+builddir="$srcdir/$pkgname-v$pkgver"
+options="!check" # Needs D-Bus server, see https://gitlab.freedesktop.org/zeitgeist/zeitgeist/issues/4
+
+prepare() {
+ default_prepare
+
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib \
+ --enable-fts
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+
+ # systemd
+ rm -rf "$pkgdir"/usr/lib/systemd
+}
+
+py3() {
+ pkgdesc="Python3 bindings for $pkgname"
+ depends="python3 lib$pkganme"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib
+}
+
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ mkdir -p "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
+}
+
+sha512sums="077c2b751b5cb96efc5da6e47336456e1dec4238b1d252218c6da137049dd0c61d518b6079e632fbbfe5edeced0c89e922c826aed1f0811fd6a29ad89abd53ae zeitgeist-v1.0.2.tar.gz
+db47a77efe7ba5cc3f71a9a2d438359c8c9a8dcd2e016726f7776d373177c863e848e4ed4525df66237c79fbf94e3cad3e2844ac685a90e663680cb71e44ff5d gettext_0.20.patch"
diff --git a/testing/zeitgeist/gettext_0.20.patch b/testing/zeitgeist/gettext_0.20.patch
new file mode 100644
index 0000000000..8e42fa5760
--- /dev/null
+++ b/testing/zeitgeist/gettext_0.20.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 14d8efa..3ea1cc7 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -31,7 +31,7 @@ AM_SILENT_RULES([yes])
+ GETTEXT_PACKAGE=AC_PACKAGE_NAME
+ AC_SUBST(GETTEXT_PACKAGE)
+ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
+-AM_GNU_GETTEXT_VERSION([0.19])
++AM_GNU_GETTEXT_VERSION([0.20])
+ AM_GNU_GETTEXT([external])
+
+ AC_SUBST(CFLAGS)