updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / j7 / PKGBUILD
blob2526e13b7f0a69373b6a3df39118c5638361ebb0
1 # Contributor: Lorenzo Tomei <tomeil@tiscali.it>
3 pkgname=j7
4 pkgver=7.01b
5 pkgrel=7
6 pkgdesc="J is a modern, high-level, general-purpose, high-performance programming language"
7 arch=(i686 x86_64)
8 url="http://www.jsoftware.com"
9 license=('GPL3')
10 depends=('ncurses' 'gtksourceview2' 'wget' 'pcre')
11 optdepends=('expat' 'fftw' 'gtksourceview3')
12 makedepends=('sed')
13 source=(http://www.jsoftware.com/download/j701_b_source.tar.gz http://www.databaserossoverde.it/jsoftware/j701_env_20111105.tar.gz)
14 md5sums=(2ef8f28c383665258588300587263294 7f0b345e48e712c3bb30283bbecac40d)
15 build() {
16   cp -a $srcdir/jenv/* $pkgdir/
17   echo "$pkgname-$pkgver-$pkgrel-${CARCH}.pkg.tar.xz (Arch Linux package)" > $pkgdir/usr/lib/j7/bin/installer.txt
18   cd $srcdir/jgplsrc
19   if [ "${CARCH}" = x86_64 ]; then
20     sed -i 's@bits=32@bits=64@' bin/jconfig
21   fi
22   sed -i 's@readline=0@readline=1@' bin/jconfig
23   sed -i 's@LIBREADLINE=""@LIBREADLINE="/usr/lib/libreadline.so"@' bin/jconfig
24   bin/build_jconsole
25   bin/build_libj
26   bin/build_defs
27   cp -a j/* $pkgdir/usr/lib/j7/
28   rm -r $pkgdir/usr/lib/j7/addons/data
29   chown -R nobody:nobody $pkgdir/srv/j