updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / arachnophilia / PKGBUILD
blob3d30c8b20eb8abcb3d7cf822c1d9e3a9dd1835b2
1 # Contributor: Nathan Owe <ndowens04 at gmail>
2 # Contributor: Gen2ly <toddrpartridge@gmail.com>
4 pkgname=arachnophilia
5 _pkgname=Arachnophilia
6 pkgver=5.4.2411
7 pkgrel=1
8 pkgdesc="Java HTML editor"
9 arch=('i686' 'x86_64')
10 url="http://www.arachnoid.com/arachnophilia/"
11 license=('careware')
12 depends=('java-runtime' 'bash')
13 source=(http://www.arachnoid.com/arachnophilia/Arachnophilia.jar
14         arachnophilia.desktop
15         arachnophilia
16         license)
17 noextract=(Arachnophilia.jar)
18 md5sums=('22f88489360e97dcb01354ca958ee130'
19          '5a46c5fb0a113b44854cac82997c4fac'
20          'ec866b46852d97f64ca1fec1feb8d2e2'
21          'fe7b743b42313dbe07af41c55b284119')
24 build() {
26   # Create pkgdir folders
27   install -d $pkgdir/usr/share/licenses/$pkgname || return 1
28   install -d $pkgdir/usr/share/java/$pkgname $pkgdir/usr/bin || return 1
29   install -d $pkgdir/usr/share/{applications,icons} || return 1
31   # Install files
32   install -Dm755 $startdir/$_pkgname.jar $pkgdir/usr/share/java/$pkgname/$_pkgname.jar || return 1
33   install -Dm755 $startdir/$pkgname $pkgdir/usr/bin/ || return 1
34   install $startdir/license $pkgdir/usr/share/licenses/$pkgname/ || return 1
36   # icon/.desktop
37   jar xf $_pkgname.jar $_pkgname.png || return 1
38   install -Dm644 $srcdir/$_pkgname.png $pkgdir/usr/share/icons/$pkgname.png || return 1
39   install -Dm644 $startdir/$pkgname.desktop $pkgdir/usr/share/applications || return 1