updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / jsoftware / PKGBUILD
blob64adc3baea30ac0f91c71d1ea2aada691f244aea
1 # Contributor: Lorenzo Tomei <tomeil@tiscali.it>
2 # Contributor: Brian Lewis <brian@lorf.org>
4 pkgname=jsoftware
5 pkgver=6.02a
6 pkgrel=9
7 pkgdesc="J is a modern, high-level, general-purpose, high-performance programming language"
8 arch=(i686 x86_64)
9 url="http://www.jsoftware.com"
10 license=('custom:jsoftware')
11 depends=('bash' 'ncurses' 'java-runtime=6')
12 if [ "${CARCH}" = i686 ]; then
13   md5sums=(d017843157736176ad779fb813521bfc 8360f4f719fb1eb4fb5489eb8c271c8f c43b8ada4bb495cd65e9fd55e1f30545 e6f459451224293d30b4bbc6386c03ee 0b63874a557b7c0caf5d87fd924ec523 b916085de18cd1bb67f2b3b40834da34)
14   _bits=32
15 else
16   md5sums=(1c7d6d51684cfa8247e77eef76281199 8360f4f719fb1eb4fb5489eb8c271c8f c43b8ada4bb495cd65e9fd55e1f30545 e6f459451224293d30b4bbc6386c03ee 0b63874a557b7c0caf5d87fd924ec523 b916085de18cd1bb67f2b3b40834da34)
17   _bits=64
19 source=("http://www.jsoftware.com/download/j602a_linux${_bits}.sh" jc.svg jw.svg jc.desktop jw.desktop jfe)
20 build() {
21   cd $startdir/src
22   tail -n +49 j602a_linux${_bits}.sh >install.tar.gz
23   tar -xzf install.tar.gz
24   rm install.tar.gz
25   mkdir -p $startdir/pkg/usr/lib/j
26   if [ "${_bits}" = 32 ]
27   then cp -a j602/*    $startdir/pkg/usr/lib/j/
28   else cp -a j64-602/* $startdir/pkg/usr/lib/j/
29   fi
30   echo "$pkgname-$pkgver-$pkgrel-${CARCH}.pkg.tar.gz (Arch Linux package)" > $startdir/pkg/usr/lib/j/bin/installer.txt
31   rm $startdir/pkg/usr/lib/j/help.htm
32   mkdir -p $startdir/pkg/usr/man/man1
33   mv $startdir/pkg/usr/lib/j/help/man/jconsole.1 $startdir/pkg/usr/man/man1/
34   rm -r $startdir/pkg/usr/lib/j/help/man
35   echo "config=.user,'/config'[temp=.user,'/temp'[user=.>(1<#2!:5'HOME'){'/srv/j';home,'/j'" > $startdir/pkg/usr/lib/j/bin/profilex.ijs
36   mkdir -p $startdir/pkg/usr/share/pixmaps
37   install -D -m644 *.svg $startdir/pkg/usr/share/pixmaps/
38   mkdir -p $startdir/pkg/usr/share/applications
39   install -D -m644 *.desktop $startdir/pkg/usr/share/applications/
40   mkdir -p $startdir/pkg/usr/bin
41   install -D -m755 jfe $startdir/pkg/usr/bin/
42   chown -R root:root $startdir/pkg
43   mkdir -p -m755 $startdir/pkg/srv/j/temp
44   chown -R nobody:nobody $startdir/pkg/srv/j