pkgname=freeglut pkgver=3.6.0 pkgrel=1 pkgdesc="Provides functionality for small OpenGL programs" arch=('x86_64') url="https://freeglut.sourceforge.net/" license=('MIT') depends=('libxi' 'libxrandr' 'libglvnd' 'libxxf86vm') makedepends=('cmake' 'mesa' 'glu') options=('!libtool') source=("https://downloads.sourceforge.net/freeglut/${pkgname}-${pkgver}.tar.gz") md5sums=('1a1c4712b3100f49f5dea22a1ad57c34') build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build install -Dm644 ${pkgname}-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }