updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tvmet / PKGBUILD
blobde5750ada50a28f72e9885ab5e9b5ded5deeefa2
1 # TVMET
2 # Contributor: Dylon Edwards <deltaecho@archlinux.us>
4 pkgname=tvmet
5 pkgver=1.7.2
6 pkgrel=1
8 pkgdesc="Tiny Vector and Matrix mathematical template library"
9 url="http://sourceforge.net/projects/tvmet/"
10 license=('LGPL')
12 source=("http://downloads.sourceforge.net/tvmet/tvmet-${pkgver}.tar.bz2")
13 md5sums=('8e1b2ec67ebec65f680a8bd3ea38a656')
15 arch=('i686' 'x86_64')
17 makedepends=('cppunit' 'gcc')
19 build() {
21         # Enter the unpacked archive
22         cd "${srcdir}/${pkgname}-${pkgver}"
24         # Create a build directory
25         mkdir -p "${pkgname}-build" && cd "${pkgname}-build"
27         # Configure the package
28         ../configure --prefix=/usr \
29                      --sysconfdir=/etc \
30                      --localstatedir=/var \
31                      --enable-optimize || return 1
33         # Make the package
34         make || return 1
36         # Sanity check
37         make check || return 1
39         # Install the package to the fakeroot directory
40         make DESTDIR=${pkgdir} install || return 1