updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / galib / PKGBUILD
blob444cabc4a19f63dd71985d0b7fd211b1ffc5cf26
1 # Contributor: Sebastien Piccand <sebcactus gmail com>
2 pkgname=galib
3 pkgver=2.4.7
4 pkgrel=4
5 pkgdesc="A C++ Library of Genetic Algorithm Components"
6 arch=('i686' 'x86_64')
7 url="http://lancet.mit.edu/ga/"
8 license=('BSD')
9 conflicts=('eo')
10 source=(http://lancet.mit.edu/ga/dist/${pkgname}247.tgz)
11 md5sums=('2b6a28fd06d4c7c4d0bb39c92b2b376c')
13 build() {
14   cd $startdir/src/${pkgname}`echo $pkgver | tr -d .`
15   # Install the BSD License
16   install -D -m644 COPYRIGHT $startdir/pkg/usr/share/licenses/galib/COPYRIGHT
17   mkdir $startdir/pkg/usr/lib
18   # Fix the CXXFLAGS
19   make CXXFLAGS="${CXXFLAGS}" lib || return 1
20   make DESTDIR=$startdir/pkg/usr install || return 1
21   # Clean unnecessary files
22   rm $startdir/pkg/usr/include/ga/{BUILD,VERSION}