PKGBUILD 863 Bytes
Newer Older
1 2 3 4 5 6
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>

pkgname=glfw
7
pkgver=2.7.7
8 9 10 11 12 13 14
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 )
15
md5sums=('873a721fc415268e2b794d4dd08c558f')
16 17 18 19 20

build() {
  cd $srcdir/$pkgname-$pkgver

  mkdir -p $pkgdir/usr/lib $pkgdir/usr/include/GL
21
  CXXFLAGS="" \
22
  LDFLAGS="-lrt" \
23
  make VERBOSE=1 x11
24 25 26 27 28 29 30 31 32 33
}

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
}