blob: c89e987105c97c1c57efc280318fd1894c40a8d9 (
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
|
# $Id: PKGBUILD 192292 2013-08-09 20:35:39Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: SleepyDog
pkgname=glew
pkgver=1.10.0
pkgrel=2
pkgdesc="The OpenGL Extension Wrangler Library"
arch=('i686' 'x86_64')
url="http://glew.sourceforge.net"
license=('BSD' 'MIT' 'GPL')
depends=('libxmu' 'libxi' 'glu')
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tgz)
sha1sums=('f41b45ca4a630ad1d00b8b87c5f493781a380300')
build() {
cd ${pkgname}-${pkgver}
sed -i 's|lib64|lib|' config/Makefile.linux
sed -i '/^.PHONY: .*\.pc$/d' Makefile
make
}
package() {
cd ${pkgname}-${pkgver}
make GLEW_DEST="${pkgdir}/usr" install.all
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm "${pkgdir}"/usr/lib/{libGLEW,libGLEWmx}.a
chmod 0755 "${pkgdir}"/usr/lib/libGLEW*.so.${pkgver}
}
|