updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / bcalc / PKGBUILD
blob26643adae92479e8353bc5f41b61c011394541ba
1 # Maintainer: Krzysztof Wloch <wloszekk@gmail.com>
2 # Contributor: Piotr Beling <qwak@w8.pl>
3 pkgname=bcalc
4 pkgver=11.12.0
5 pkgrel=1
6 pkgdesc="Bridge Calculator is program which solves problems in the Bridge card game (like double dummy problem)"
7 arch=('i686' 'x86_64')
8 url="http://www.bcalc.w8.pl"
9 license=('custom')
10 depends=('lua>=5.1')
11 options=('!strip')
12 source=("${url}/download/bcalc${pkgver//./}_linux_${CARCH/_/-}.tar.gz"
13         "${url}/download/bcalc_linuxpkgdevel_09.tar.gz")
14 md5sums=('d06fcaa29d8814b3ebe052e40a4f5e27'
15          '32ebb622ae7ef95626279a0dfc877964')
17 [ "$CARCH" = "x86_64" ] && md5sums[0]='be891198ca9c5dd0463cdad05a54e332'
19 build() {
20         install -d $pkgdir/usr/bin                      || return 1
22         cd $srcdir                                      || return 1
24         install -m 755 bcalcgui $pkgdir/usr/bin/bcalcgui        || return 1
25         install -m 755 bcalconsole $pkgdir/usr/bin/bcalconsole  || return 1
27         install -D -m644 bcalc.desktop \
28         $pkgdir/usr/share/applications/bcalc.desktop    || return 1
30         install -D -m644 bcalc.png \
31         $pkgdir/usr/share/pixmaps/bcalc.png             || return 1
32         
33         install -d $pkgdir/usr/share/locale/pl/LC_MESSAGES/
34         install -D -m644 i18n/pl/LC_MESSAGES/* $pkgdir/usr/share/locale/pl/LC_MESSAGES/
36         install -d $pkgdir/var/lib/bcalc/downloaders
37         install -D -m644 downloaders/* $pkgdir/var/lib/bcalc/downloaders
38         
39         install -d $pkgdir/usr/lib
40         ln -s /usr/lib/liblua.so $pkgdir/usr/lib/liblua5.1.so.0