# $Id: PKGBUILD 87832 2013-04-07 21:39:10Z svenstaro $ # Maintainer: Sven-Hendrik Haase # Contributor: philefou # Contributor: lindquist # Contributor: Christoph Siegenthaler # Contributor: Mihai Militaru # Contributor: SpepS pkgname=glfw pkgver=2.7.8 pkgrel=1 pkgdesc="A free, open source, portable framework for OpenGL application development" arch=('i686' 'x86_64' 'mips64el') url="http://www.glfw.org/" license=('custom:ZLIB') depends=('libgl' 'libxrandr' 'glu') makedepends=('mesa') source=("http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2") md5sums=('a2e1b13e46a7c637a7760c94b72896cd') build() { cd "$srcdir/$pkgname-$pkgver" export LFLAGS+="-lrt" make x11 } package() { cd "$srcdir/$pkgname-$pkgver" make PREFIX="$pkgdir/usr" x11-dist-install # license install -Dm644 COPYING.txt \ "$pkgdir/usr/share/licenses/$pkgname/COPYING" # docs install -d "$pkgdir/usr/share/doc/$pkgname" install -Dm644 docs/*.pdf "$pkgdir/usr/share/doc/$pkgname" # fix pc file prefix path sed -i "s|$pkgdir||g" "$pkgdir/usr/lib/pkgconfig/lib$pkgname.pc" }