updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dds / PKGBUILD
blob9e3319bcf76aed9386a1f72eb136a493144c34c7
1 # Contributor: Piotr Beling <qwak@stud.ics.p.lodz.pl>
3 pkgname=dds
4 pkgver=1.1.9
5 pkgrel=1
6 arch=(i686 x86_64)
7 pkgdesc="bridge double dummy solver"
8 url="http://web.telia.com/~u07502278/"
9 source=($url/dds${pkgver//./}-src.zip)
10 license=('GPL')
11 depends=()
12 options=()
14 build() {
15     cd $startdir/src                                    || return 1
16     ln -s dll.h dds.h
17     ln -s dds.cpp dds.c
19     #Fixed some errors in source:
20 #    sed -i  \
21 #       -e 's/void InitStart(void);/EXTERN_C void InitStart(void);/g' \
22 #       dds.c
23 #    patch -p1 < longlong.patch
24     
25     gcc $CFLAGS -c dds.c -o dds.o                       || return 1
26     ar rc libdds.a dds.o                                || return 1
27     ranlib libdds.a                                     || return 1
28     
29     local destdir=$startdir/pkg/usr                     || return 1
30     install -d $destdir/{include,lib}                   || return 1
31     install -m644 dll.h $destdir/include/dds.h          || return 1
32     install libdds.a $destdir/lib                       || return 1
35 md5sums=('726f40a6263cf62b283328e603d71f9e')