updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / glm / PKGBUILD
blob709526b1666ce4490feb48a6d2067c07a4038929
1 # Contributor: bl4ckb1t <bl4ckb1t@gmail.com>
2 pkgname=glm
3 pkgver=0.3.1
4 pkgrel=2
5 pkgdesc="Alias Wavefront OBJ File Reader/Viewer Library"
6 arch=('i686' 'x86_64')
7 url="http://devernay.free.fr/hacks/glm/"
8 license=('GPL')
9 depends=('freeglut' 'devil' 'libpng' 'libjpeg')
10 source=(http://devernay.free.fr/hacks/glm/$pkgname-$pkgver.tar.gz)
11 md5sums=('4364ff9e96c83a80953419bd19e5a19a')
13 build() {
14   cd $startdir/src/$pkgname-$pkgver
16   [[ "${CARCH}" == 'x86_64' ]] &&
17     sed -ie '215s/examples//' Makefile.in
19   ./configure --prefix=/usr
20   make || return 1
21   make DESTDIR=$startdir/pkg install
22   rm -f $startdir/pkg/usr/lib/libglm.la
23   install -Dm644 COPYING ${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING