updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openbravopos / PKGBUILD
bloba7f090d98cb4b7697c6c9ce0c8885edd1f12ff15
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 pkgname=openbravopos
4 pkgver=2.30
5 pkgrel=1
6 pkgdesc="An elegant POS application."
7 arch=('i686')
8 url="http://www.openbravo.com"
9 license=('custom')
10 depends=('jre')
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname\_$pkgver\_bin.zip)
12 md5sums=('93f96a8261fa1150ef2615026dffb809')
14 build() {
15         cd $startdir/src
16         mkdir -p $pkgdir/usr/{bin,share/{applications,openbravopos,licenses/openbravopos}}
17         rm *.bat $pkgname\_$pkgver\_bin.zip
18         cp -Rf * $pkgdir/usr/share/$pkgname
19         echo -e "#!/bin/bash\n\ncd /usr/share/$pkgname/\n./start.sh" >$pkgdir/usr/bin/$pkgname
20         chmod 755 $pkgdir/usr/bin/$pkgname
21         cp $startdir/src/licensing/Openbravo\ POS\ notice.txt $pkgdir/usr/share/licenses/$pkgname/
22         install -D -m644 $startdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop