OCaml 4.14.0 rebuild
[arch-packages.git] / freeglut / repos / extra-x86_64 / PKGBUILD
blob6d3bdd7bbb104e2e62cd40af2e9546e8bcfa7ea6
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Eric Belanger <eric@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 pkgname=freeglut
6 pkgver=3.2.2
7 pkgrel=2
8 pkgdesc="Provides functionality for small OpenGL programs"
9 url="http://freeglut.sourceforge.net/"
10 arch=(x86_64)
11 license=(MIT)
12 depends=(libxi libxrandr libgl)
13 makedepends=(mesa glu libxxf86vm cmake ninja)
14 replaces=(glut)
15 provides=(glut)
16 conflicts=(glut)
17 options=(debug)
18 source=(https://downloads.sourceforge.net/freeglut/freeglut-$pkgver.tar.gz)
19 sha512sums=('190231951d314f854c244bd27f7c20488403bd0eecffc342097a2e3d1621cec87f6c209a77b4c153aabcf44697b4070227930e295ab74fb88953cbbf94fc81d9')
21 prepare() {
22   cd freeglut-$pkgver
25 build() {
26   cmake -S freeglut-$pkgver -B build -G Ninja \
27     -DFREEGLUT_BUILD_STATIC_LIBS=OFF \
28     -DCMAKE_INSTALL_PREFIX=/usr \
29     -DCMAKE_INSTALL_LIBDIR=lib \
30     -DCMAKE_BUILD_TYPE=None
31   cmake --build build
34 package() {
35   DESTDIR="$pkgdir" cmake --install build
36   ln -sr "$pkgdir"/usr/lib/pkgconfig/{glut,freeglut}.pc
37   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 freeglut-$pkgver/COPYING
40 # vim:set sw=2 et: