1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
2 # Contributor: Dan Serban
3 # Contributor: Florian Richter <Florian_Richter@gmx.de>
7 _pkgextraver=20111207_9000
9 pkgdesc="Peer to peer search engine"
11 url=http://www.yacy.net/
13 depends=(java-environment sudo)
14 makedepends=(apache-ant)
16 source=(http://www.yacy.net/release/yacy_v${pkgver}_${_pkgextraver}.tar.gz
17 yacyInit-ArchLinux.patch)
19 md5sums=('c6f6a2d62ef3de7e3874afc24a8cf317'
20 '915495273780379b77e5bcdc11377a73')
24 . /etc/profile.d/jdk.sh 2>/dev/null || . /etc/profile.d/openjdk6.sh
25 . /etc/profile.d/apache-ant.sh
28 patch addon/yacyInit.m4 "$srcdir"/yacyInit-ArchLinux.patch
29 # Fix build with non-unicode locales
30 sed -i -e 's/<javac/& encoding="UTF-8"/' build.xml
37 ant installonlinux -DDESTDIR="$pkgdir/"
38 install -d "$pkgdir"/usr/share/java/yacy
39 install -t "$pkgdir"/usr/share/java/yacy/ lib/*.jar
40 m4 -DArchLinux "$srcdir/$pkgname"/addon/yacyInit.m4 > yacy.init
41 install -Dm755 yacy.init "$pkgdir"/etc/rc.d/yacy
42 rm -f "$pkgdir"/etc/yacy "$pkgdir"/usr/share/yacy/DATA "$pkgdir"/var/log/yacy