desktop/glfw/PKGBUILD

38 lines
1019 B
Bash
Raw Normal View History

2015-09-26 09:36:03 +08:00
pkgname=glfw
2016-08-28 17:22:52 +08:00
pkgver=3.2.1
2016-08-20 04:03:27 +08:00
pkgrel=1
2015-09-26 09:36:03 +08:00
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")
2016-08-28 17:22:52 +08:00
sha512sums=('c7921f993b9a99b3b9421fefadb039cd475c42d85f5b5a35d7c5401c70491349bb885a02fd31e527de06a8b40d9d49a1fdb92c964e13c04ae092c6b98eb491dc')
2015-09-26 09:36:03 +08:00
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"
2015-10-20 04:41:19 +08:00
}