From 368915cf94edf4274567e9615116d88dc9c1396e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Mon, 18 Jan 2016 20:54:53 -0300 Subject: kiwix: add new package to [pcr] -> https://labs.parabola.nu/issues/906 --- pcr/kiwix/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pcr/kiwix/PKGBUILD (limited to 'pcr/kiwix/PKGBUILD') diff --git a/pcr/kiwix/PKGBUILD b/pcr/kiwix/PKGBUILD new file mode 100644 index 000000000..0dd6a23ab --- /dev/null +++ b/pcr/kiwix/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: André Silva + +pkgname=kiwix +pkgver=0.9 +pkgrel=1 +pkgdesc="Offline reader for Web content. It's especially intended to make Wikipedia available offline" +arch=('i686' 'x86_64' 'armv7h') +url="http://www.kiwix.org/" +license=('GPL3') +depends=('rpcbind' 'gtk2' 'alsa-lib' 'libxt' 'libcanberra' 'sqlite3' 'java-environment') +makedepends=('zip' 'xapian-core' 'icu' 'libmicrohttpd' 'zimlib' 'pugixml' + 'ctpp2' 'aria2' 'bc' 'wget' 'xulrunner') +#makedepends=('bc' 'wget') +conflicts=(kiwix-bin) +install=$pkgname.install +source=("http://sourceforge.net/projects/kiwix/files/$pkgver/kiwix-$pkgver-src.tar.xz" + 'kiwix.desktop' + '0001-remove-static-makefile.patch' + '0002-fix-python2-path.patch' + '0003-fix-nspr-include-path.patch') +sha256sums=('0cfb43cb1931856ce14bcc50f0fc675c82abe76ef449cc2e4b4559e121bce714' + '3790697dc5d4c7c45c0f4b24e8c0d1129446c13e300bb60934eb8a743b9176c5' + '849d85eda95c4306af641debaed27b3bdd34800b3a3fc9b1042290d7ba7635ec' + '228385a1508b7a380b87717fbb877700b5ad0bad1e327a83e32f4bea2ee71824' + '20db0911f4564f72edce1435912292be0f3f197c13612e60fc127ecf0cfc429d') + +prepare() { + cd $pkgname-$pkgver + patch -Np1 -i ../0001-remove-static-makefile.patch + patch -Np1 -i ../0002-fix-python2-path.patch + patch -Np1 -i ../0003-fix-nspr-include-path.patch +} + +build() { + cd $pkgname-$pkgver + ./autogen.sh + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-indexer \ + --enable-installer \ + --enable-manager \ + --enable-server \ + --enable-jar + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} -- cgit v1.2.3-2-g168b