blob: 4ac19a62cd44438b466222879f2fb79c05ffc5fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Jose Riha <jose1711 gmail com>
# Contributor: Lara Maia <lara@craft.net.br>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
# Contributor: josephgbr <rafael.f.f1 at gmail dot com>
pkgname=glew1.5
pkgver=1.5.8
pkgrel=5
pkgdesc="Legacy version of the OpenGL Extension Wrangler Library"
arch=(i686 x86_64)
url="http://sourceforge.net/projects/glew/"
license=(BSD MIT GPL)
depends=(glew)
source=(http://downloads.sourceforge.net/glew/glew-$pkgver.tgz)
md5sums=('342c8dc64fb9daa6af245b132e086bdd')
prepare() {
cd "$srcdir"/glew-$pkgver/
sed -i 's|lib64|lib|' config/Makefile.linux
make clean
}
build() {
cd "$srcdir"/glew-$pkgver/
make
}
package() {
cd "$srcdir"/glew-$pkgver/
# We want only these two libraries
strip -x lib/libGLEW.so.$pkgver
install -Dm644 lib/libGLEW.so.$pkgver "$pkgdir"/usr/lib/libGLEW.so.$pkgver
ln -sf libGLEW.so.$pkgver "$pkgdir"/usr/lib/libGLEW.so.1.5
chmod 755 "$pkgdir"/usr/lib/libGLEW.so.$pkgver
}
|