desktop/glfw/PKGBUILD
Adrián Chaves Fernández 5894ee8614 glfw 3.2
2016-08-19 22:03:27 +02:00

38 lines
1017 B
Bash

pkgname=glfw
pkgver=3.2
pkgrel=1
pkgdesc="A free, open source, portable framework for OpenGL application development"
arch=('x86_64')
url="http://www.glfw.org/"
license=('custom:ZLIB')
depends=('libgl' 'libxrandr' 'glu' 'xorg-xinput' 'libxxf86vm' 'libxcursor')
makedepends=('mesa' 'cmake' 'doxygen')
source=("https://github.com/glfw/glfw/archive/${pkgver}.tar.gz")
sha512sums=('55982cba8b6605fe5489f7396fb5101f3eedd121d13a51ab8178e4bd2c8b348a8b7869fcd00dbefe5725b5c04942318c2a99f13832da4bfa74db42ab2812f3a2')
build() {
cd "$srcdir/$pkgname-$pkgver"
[[ -d build ]] && rm -r build
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON
make docs
}
package() {
cd "$srcdir/$pkgname-$pkgver"
cd build
make DESTDIR=$pkgdir install
cd ../
install -Dm644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING"
#docs
install -d "${pkgdir}/usr/share/doc/glfw/"
cp -r "${srcdir}/glfw-${pkgver}/build/docs/html" "${pkgdir}/usr/share/doc/glfw"
}