1 # Maintainer: Krzysztof Wloch <wloszekk@gmail.com>
2 # Contributor: Piotr Beling <qwak@w8.pl>
6 pkgdesc="Bridge Calculator is program which solves problems in the Bridge card game (like double dummy problem)"
8 url="http://www.bcalc.w8.pl"
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'
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
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
39 install -d $pkgdir/usr/lib
40 ln -s /usr/lib/liblua.so $pkgdir/usr/lib/liblua5.1.so.0