desktop/glfw/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) f12cce78b3 GLFW 2.7.9
2013-06-06 19:52:20 +00:00

34 lines
863 B
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=glfw
pkgver=2.7.9
pkgrel=1
pkgdesc="A free, open source, portable framework for OpenGL application development."
arch=('i686' 'x86_64')
url="http://glfw.sourceforge.net/"
license=('ZLIB')
depends=('mesa' 'xorg-server')
source=(http://sunet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 )
md5sums=('96e12be48801984f0f0c23e38549b277')
build() {
cd $srcdir/$pkgname-$pkgver
mkdir -p $pkgdir/usr/lib $pkgdir/usr/include/GL
CXXFLAGS="" \
LDFLAGS="-lrt" \
make VERBOSE=1 x11
}
package() {
cd $srcdir/$pkgname-$pkgver
make PREFIX=$pkgdir/usr x11-install
cp $srcdir/$pkgname-$pkgver/lib/x11/libglfw.so $pkgdir/usr/lib
sed -i 's#'$pkgdir'##g' $pkgdir/usr/lib/pkgconfig/libglfw.pc
}