updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / glxx / PKGBUILD
blob09e3d62b3a9451e1580cf99c07950fede4b3fdc9
1 # Maintainer: Erico Nunes <nunes dot erico at gmail>
2 # Contributor: Erico Nunes <nunes dot erico at gmail>
3 pkgname=glxx
4 pkgver=0.3
5 pkgrel=3
6 pkgdesc="A C++ OpenGL extensions loading library."
7 arch=('i686')
8 url="https://bitbucket.org/yotis/glxx/wiki/Home"
9 license=(BSD)
10 depends=('libgl' 'mesa')
11 source=("https://bitbucket.org/yotis/${pkgname}/get/v${pkgver}.tar.gz")
12 md5sums=('92afb95f3809554751f8bf113587d85e')
14 build() {
15   cd "${srcdir}/yotis-${pkgname}-v${pkgver}"
17   g++ -c -pipe -O2 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -o glxx.o glxx.cpp
18   g++ -c -pipe -O2 -fPIC -Wall -W -D_REENTRANT -DNDEBUG -o glXxx.o glXxx.cpp
19   ar cqs libglxx.a glxx.o glXxx.o
22 package() {
23   _lib=${pkgdir}/usr/lib
24   _include=${pkgdir}/usr/include
25   _share=${pkgdir}/usr/share/${pkgname}
27   cd "$srcdir/yotis-${pkgname}-v${pkgver}"
29   mkdir -p ${_lib} ${_include} ${_share}
31   install -m 0644 libglxx.a ${_lib}
32   install -m 0644 glxx.h ${_include}
33   install -m 0644 _LICENSE.txt ${_share}
36 # vim:set ts=2 sw=2 et: