1 # Maintainer: Erico Nunes <nunes dot erico at gmail>
2 # Contributor: Erico Nunes <nunes dot erico at gmail>
6 pkgdesc="A C++ OpenGL extensions loading library."
8 url="https://bitbucket.org/yotis/glxx/wiki/Home"
10 depends=('libgl' 'mesa')
11 source=("https://bitbucket.org/yotis/${pkgname}/get/v${pkgver}.tar.gz")
12 md5sums=('92afb95f3809554751f8bf113587d85e')
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
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: