updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jsms / PKGBUILD
blobe5597e49f11003b31629a4490674cb1f4237b485
1 # Contributor: Gilfran Ribeiro <contato at gilfran.net> 
3 pkgname=jsms
4 pkgver=3.11
5 pkgrel=1
6 license=('GPL')
7 pkgdesc="A Java-based application for sending SMS messages through Brazilian mobile phone operators"
8 arch=('i686' 'x86_64')
9 url="http://jsms.com.br/"
10 depends=('jre')
11 source=('http://jsms.com.br/download/jSMS-311.jar'
12                 'http://www.gilfran.net/gil/archpkg/jSMS.png'
13                 'http://www.gilfran.net/gil/archpkg/jsms.desktop')
14 noextract=(jSMS-311.jar)
15 md5sums=('08e899dd6b56f98cb4f0fb35526b3f3e'
16                  'b4b76a7acde6395afb9562d9b8b9f303'
17                  '19c8ff5b5678d95eecd2a3751989c62e')
19 build() {
20 cd $startdir/
21 install -d $startdir/pkg/usr/share/$pkgname
22 install -d $startdir/pkg/usr/bin
23 install -d $startdir/pkg/usr/share/applications
24 install -d $startdir/pkg/usr/share/pixmaps
26 install jSMS.png $startdir/pkg/usr/share/pixmaps
27 install jsms.desktop $startdir/pkg/usr/share/applications
28 install jSMS-311.jar $startdir/pkg/usr/share/$pkgname
30 cat > $startdir/src/$pkgname << EOF
31 #!/bin/sh
32 export AWT_TOOLKIT=MToolkit
33 java -jar /usr/share/$pkgname/jSMS-311.jar $@
34 EOF
36 install -m 755 $startdir/src/$pkgname $startdir/pkg/usr/bin/$pkgname