summaryrefslogtreecommitdiff
path: root/pcr/kiwix/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/kiwix/PKGBUILD')
-rw-r--r--pcr/kiwix/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
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 <emulatorman@parabola.nu>
+
+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
+}