updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / yacy / PKGBUILD
blob926b73e1c6a96b0b898e7e86721f6175cea2da7b
1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
2 # Contributor: Dan Serban
3 # Contributor: Florian Richter <Florian_Richter@gmx.de>
5 pkgname=yacy
6 pkgver=1.01
7 _pkgextraver=20111207_9000
8 pkgrel=1
9 pkgdesc="Peer to peer search engine"
10 arch=('any')
11 url=http://www.yacy.net/
12 license=(GPL)
13 depends=(java-environment sudo)
14 makedepends=(apache-ant)
15 install=yacy.install
16 source=(http://www.yacy.net/release/yacy_v${pkgver}_${_pkgextraver}.tar.gz
17         yacyInit-ArchLinux.patch)
18 options=(!emptydirs)
19 md5sums=('c6f6a2d62ef3de7e3874afc24a8cf317'
20          '915495273780379b77e5bcdc11377a73')
22 build()
24   . /etc/profile.d/jdk.sh 2>/dev/null || . /etc/profile.d/openjdk6.sh
25   . /etc/profile.d/apache-ant.sh
27   cd "$srcdir/$pkgname"
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
31   ant all
34 package()
36   cd "$srcdir/$pkgname"
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