updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / newmat / PKGBUILD
blob6db114bcd39e956438d8cfc8b01b8a955858cb35
1 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=newmat  
3 pkgver=10
4 pkgrel=2
5 pkgdesc="C++ matrix library"
6 url="http://www.robertnz.net"
7 arch=('i686' 'x86_64')
8 license=('custom')
9 source=(http://www.robertnz.net/ftp/$pkgname$pkgver.tar.gz filelist)
10 md5sums=('cc7408a10ee3d4775fc5f86e523bf56a' '1257a4599e437254666aeac610b7d5c5')
11 build() {
12   cd $srcdir
13   sed -i 's+//#define use_namespace+#define use_namespace+' include.h || return 1
14   for _i in `cat filelist | awk '{print $1}'`
15   do
16     install -Dm644 ${_i} $pkgdir/usr/include/$pkgname/${_i} || return 1
17   done
18   install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING || return 1
19   make -f nm_gnu.mak || return 1
20   install -Dm644 libnewmat.a $pkgdir/usr/lib/libnewmat.a || return 1