blob: 0b31b37ac1891de49bdd277c6b3bf7049dadd11c (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: a821
# Contributor: mnovick1988
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: SleepyDog
pkgname=glew-git
pkgver=2.2.0.r57.gb323ebf
pkgrel=1
pkgdesc="The OpenGL Extension Wrangler Library"
arch=('i686' 'x86_64')
url="https://github.com/nigels-com/glew"
license=('BSD-3-Clause' 'MIT' 'GPL-2.0-or-later')
depends=('libxmu' 'libxi' 'glu')
makedepends=('git' 'python')
provides=('glew' 'libGLEW.so')
conflicts=('glew')
source=("git+$url"
"git+https://github.com/KhronosGroup/OpenGL-Registry.git"
"git+https://github.com/KhronosGroup/EGL-Registry.git"
"git+https://github.com/nigels-com/glfixes"
"glew-install.patch"
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'30c77b49ff64f5b936368426f957a217b6d8a3f8d0c83a7eaa69222ed45cd811')
pkgver() {
cd ${pkgname%-git}
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g; s/glew.//'
}
prepare() {
cd ${pkgname%-git}
patch -Np1 -i ../glew-install.patch
cd ../glfixes
git checkout -b glew origin/glew
}
build() {
cd ${pkgname%-git}/auto
make REPO_OPENGL="$srcdir/OpenGL-Registry" REPO_EGL="$srcdir/EGL-Registry" \
REPO_GLFIXES="$srcdir/glfixes"
cd ..
make STRIP= GLEW_PREFIX=/usr GLEW_DEST=/usr LIBDIR=/usr/lib
}
package() {
cd ${pkgname%-git}
make install.all DESTDIR="$pkgdir" GLEW_PREFIX=/usr GLEW_DEST=/usr LIBDIR=/usr/lib
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: set ts=2 sw=2 et:
|