Commit dc3aa06e authored by Francesco Marinucci's avatar Francesco Marinucci

glew: update to 2.1.0

parent 56567f01
# maintainer almack@chakraos.org
pkgname=glew
pkgver=1.10.0
pkgver=2.1.0
pkgrel=1
pkgdesc="A cross-platform C/C++ extension loading library"
arch=('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')
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz")
sha1sums=('18eca05460d0b61709fc115e632b6fe320718b44')
build() {
cd ${pkgname}-${pkgver}
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}
cd $pkgname-$pkgver
make GLEW_DEST="$pkgdir/usr" install.all
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment