blob: 3624620f903bfd7876c8b192067d5703108e02a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $Id: PKGBUILD 79769 2012-11-12 09:00:25Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: philefou <tuxication AT gmail DOT com>
# Contributor: lindquist <tomas@famolsen.dk>
# Contributor: Christoph Siegenthaler <csi@gmx.ch>
# Contributor: Mihai Militaru <mihai.militaru@ephemeros.org>
# Contributor: SpepS <dreamspepser at yahoo dot it>
pkgname=glfw
pkgver=2.7.7
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=('873a721fc415268e2b794d4dd08c558f')
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"
}
|