updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / qtballit / PKGBUILD
blob24f126618e4d42aaf885e3c0be2924ff730938db
1 # Contributor:Xemertix <arch88(at)katamail(dot)com>
2 # WinBallit is available in italian,english,german while Qtballit is available only in italian and german.
3 # The program's manual will be opened with firefox,this maybe changed in makefile.patch
5 pkgname=qtballit
6 pkgver=0.1
7 pkgrel=1
8 depends=('qt3')
9 pkgdesc="The linux version of WinBallit ballistic calculator"
10 url="http://www.earmi.it/download/winballit.htm"
11 arch=("i686" "x86_64")
12 license=('GPL')
13 source=(http://slack.isper.sk/pub/slackware-13.0/utilities/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.gz
14         makefile.patch
15         qtballit.desktop)
16     
17 md5sums=('f1a17d18f06d9db3bce528e4ed626b5d'
18          '40b2d0f2925d491c97b706c67e085294'
19          '6d9710c8f541e1821a25b8266b6f53e0')
21 build() {
22   cd ${srcdir}/${pkgname}
24   patch -p0 < ${srcdir}/makefile.patch || return 1
26   make || return 1
27   install -D -m 755 Qtballit ${pkgdir}/usr/bin/qtballit
29   mkdir -p ${pkgdir}/usr/share/{${pkgname},${pkgname}/i18n}
30   cp -a *.png ${pkgdir}/usr/share/${pkgname}
31   cp -a qtballit_de.qm ${pkgdir}/usr/share/${pkgname}/i18n
33   mkdir -p ${pkgdir}/usr/share/doc/${pkgname}
34   cp -a *.htm COPYING INSTALL ${pkgdir}/usr/share/doc/${pkgname}
36   install -D -m 664 ${srcdir}/qtballit.desktop ${pkgdir}/usr/share/applications/qtballit.desktop