aboutsummaryrefslogtreecommitdiffstats
path: root/main/glew/APKBUILD
blob: a6d1b1a8eaede1fa4826692cd76d88f4536c0e9b (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
# Contributor: Carlo Landmeter
# Maintainer: 
pkgname=glew
pkgver=1.5.5
pkgrel=0
pkgdesc="A cross-platform C/C++ extension loading library"
url="http://glew.sourceforge.net"
license="GPL"
depends=
makedepends="libxmu-dev libxi-dev mesa-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	sed -i 's|lib64|lib|' config/Makefile.linux || return 1	
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make GLEW_DEST="${pkgdir}/usr" install
	install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

md5sums="3621f27cfd3e33d5dbcc1111ecb5b762  glew-1.5.5.tgz"