archrelease: copy trunk to extra-x86_64
[arch-packages.git] / glew / trunk / PKGBUILD
blob9d88e61af682eb7ffd1ceb9170a85f7983c41db5
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
3 # Contributor: SleepyDog
5 pkgname=glew
6 pkgver=2.2.0
7 pkgrel=2
8 pkgdesc="The OpenGL Extension Wrangler Library"
9 arch=('x86_64')
10 url="https://github.com/nigels-com/glew"
11 license=('BSD' 'MIT' 'GPL')
12 depends=('libxmu' 'libxi' 'glu')
13 provides=('libGLEW.so')
14 # https://sourceforge.net/projects/glew/files/glew/
15 source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tgz
16         glew-install.patch)
17 sha1sums=('22d6e9b9e691080eb6313407dbf51cfebc3345ea'
18           'e1bfa1e6ae3c7a553920978111092ea9d3a33c95')
20 prepare() {
21   cd ${pkgname}-${pkgver}
22   patch -Np1 -i ../glew-install.patch
25 build() {
26   cd ${pkgname}-${pkgver}
27   make \
28    STRIP= \
29    LIBDIR=/usr/lib
32 package() {
33   cd ${pkgname}-${pkgver}
34   make install.all DESTDIR="$pkgdir" \
35     LIBDIR=/usr/lib
36   install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"