updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / glfw / PKGBUILD
blob188c7614d901c061eb62da65ef278dbcb41516ce
1 # Maintainer : philefou <tuxication AT gmail DOT com>
2 # Contributor: lindquist <tomas@famolsen.dk>
3 # Contributor: Christoph Siegenthaler <csi@gmx.ch>
4 # Contributor: Mihai Militaru <mihai.militaru@ephemeros.org>
5 # Contributor: SpepS <dreamspepser at yahoo dot it>
7 pkgname=glfw
8 pkgver=2.7.2
9 pkgrel=2
10 pkgdesc="A free, open source, portable framework for OpenGL application development."
11 arch=('i686' 'x86_64')
12 url="http://www.glfw.org/"
13 license=('custom:ZLIB')
14 depends=('libgl' 'libxrandr')
15 source=("http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2")
16 md5sums=('bb4f33b43e40f8cd3015a653dca02ed1')
18 build() {
19   cd "$srcdir/$pkgname-$pkgver"
21   make x11
24 package() {
25   cd "$srcdir/$pkgname-$pkgver"
27   make PREFIX="$pkgdir/usr" x11-dist-install
29   # license
30   install -Dm644 COPYING.txt \
31     "$pkgdir/usr/share/licenses/$pkgname/COPYING"
33   # docs
34   install -d "$pkgdir/usr/share/doc/$pkgname"
35   install -Dm644 docs/*.pdf "$pkgdir/usr/share/doc/$pkgname"
37   # fix pc file prefix path
38   sed -i "s|$pkgdir||g" "$pkgdir/usr/lib/pkgconfig/lib$pkgname.pc"