summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42ad2aba58c3934074217efeea6d6606c99c4508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: nic96
pkgname=kiwix-bin
pkgver=0.9
pkgrel=3
pkgdesc="Offline reader for Web content. It's especially intended to make Wikipedia available offline."
arch=('i686' 'x86_64')
url="http://www.kiwix.org"
license=('GPL3')
depends=('rpcbind' 'gtk2' 'alsa-lib' 'libxt' 'libcanberra' 'sqlite3' 'java-environment' 'zlib')
provides=('kiwix')
conflicts=('kiwix')
install='kiwix.install'
[[ "$CARCH" == 'x86_64' ]] && source=("http://sourceforge.net/projects/kiwix/files/$pkgver/kiwix-$pkgver-linux-x86_64.tar.bz2" "kiwix.desktop") && md5sums=('df6216ba851819d9c3d0208d3ea639df' '28f6bc22e23a3a73e60bbcf632b65827')
[[ "$CARCH" == 'i686' ]] && source=("http://sourceforge.net/projects/kiwix/files/$pkgver/kiwix-$pkgver-linux-i686.tar.bz2" "kiwix.desktop") && md5sums=('b61fdc3937aa226f34f685ba0bc29db1' '28f6bc22e23a3a73e60bbcf632b65827')

#build() {
#}

package() {
	mkdir -p ${pkgdir}/usr/lib
	mkdir -p ${pkgdir}/usr/bin
	cp -R -d ${srcdir}/kiwix ${pkgdir}/usr/lib/
	find ${pkgdir}/usr/lib/kiwix -perm -u=r -exec chmod a+r {} \;
	find ${pkgdir}/usr/lib/kiwix -perm -u=x -exec chmod a+x {} \;
	ln -f -s /usr/lib/kiwix/kiwix ${pkgdir}/usr/bin/kiwix
	ln -f -s /usr/lib/kiwix/bin/kiwix-serve ${pkgdir}/usr/bin/kiwix-serve
	install -D -m644 ${srcdir}/kiwix.desktop ${pkgdir}/usr/share/applications/kiwix.desktop
	install -D -m644 ${srcdir}/kiwix/chrome/icons/default/main.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/kiwix.png
	ln -sf /usr/lib/libz.so.1 ${pkgdir}/usr/lib/kiwix/xulrunner/libz.so.1
}