blob: f06b5e148477e96800c57e1c6da6c8487e6cefe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: bastikr <basti.kr@gmail.com>
pkgname=blitz-cppqed-hg
pkgrel=2
pkgver=0.10.r1924.b28e85ab238e
pkgdesc="C++ Class library for scientific computing. This version contains backward compatible patches needed for C++QED"
arch=('i686' 'x86_64')
url="http://www.sourceforge.net/projects/blitz/"
license=('custom' 'LGPL3' 'BSD')
depends=('gcc-libs' 'boost')
makedepends=('mercurial' 'gcc')
optdepends=()
provides=('blitz')
conflicts=('blitz')
source=("${pkgname}"::'hg+http://cppqed.hg.sourceforge.net:8000/hgroot/cppqed/blitz')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "0.10.r%s" "$(hg identify -n).$(hg identify -i)"
}
build() {
cd "${srcdir}/${pkgname}"
autoreconf -vif
if [ "$CARCH" = "x86_64" ]; then
./configure CXX=g++ --prefix=/usr --enable-shared --enable-serialization --enable-64bit|| return 1
else
# According to this bug report on
# https://bugs.launchpad.net/ubuntu/+source/blitz++/+bug/1213144
# we have to use --enable-simd-width=8
./configure CXX=g++ --prefix=/usr --enable-shared --enable-serialization --enable-simd-width=8|| return 1
fi
}
package() {
# Blitz uses /usr/bin/env python but needs python2
mkdir "$srcdir/tempbin"
ln -s /usr/bin/python2 "$srcdir/tempbin/python"
export PATH="$srcdir/tempbin":$PATH
cd "$srcdir/$pkgname"
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
make DESTDIR=$pkgdir install || return 1
# building documentation causes trouble in some cases
# make DESTDIR=$pkgdir install-html || return 1
rm -rf "$srcdir/tempbin"
# rm -rf $pkgdir/usr/lib/pkgconfig
# rmdir $pkgdir/usr/share/doc/blitz-*/doxygen
}
|