From 4fd31f219f19dfc2168702cef9421eaaccd9b3e6 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 29 Oct 2011 23:14:54 +0000 Subject: Sat Oct 29 23:14:54 UTC 2011 --- community/glfw/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 community/glfw/PKGBUILD (limited to 'community/glfw/PKGBUILD') diff --git a/community/glfw/PKGBUILD b/community/glfw/PKGBUILD new file mode 100644 index 000000000..889f2cb87 --- /dev/null +++ b/community/glfw/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: philefou +# Contributor: lindquist +# Contributor: Christoph Siegenthaler +# Contributor: Mihai Militaru +# Contributor: SpepS + +pkgname=glfw +pkgver=2.7.2 +pkgrel=2 +pkgdesc="A free, open source, portable framework for OpenGL application development" +arch=('i686' 'x86_64') +url="http://www.glfw.org/" +license=('custom:ZLIB') +depends=('libgl' 'libxrandr') +makedepends=('mesa') +source=("http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2") +md5sums=('bb4f33b43e40f8cd3015a653dca02ed1') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + 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" +} -- cgit v1.2.3-54-g00ecf