pkgname=freeglut pkgver=3.6.0 pkgrel=1 pkgdesc="Free OpenGL Utility Toolkit" arch=('x86_64') url="https://freeglut.sourceforge.net/" license=('X11') depends=( 'glibc' 'libx11' 'libxi' 'libxrandr' 'libxxf86vm' 'mesa' ) makedepends=('cmake' 'glu') source=(https://downloads.sourceforge.net/freeglut/${pkgname}-${pkgver}.tar.gz) sha256sums=(9c3d4d6516fbfa0280edc93c77698fb7303e443c1aaaf37d269e3288a6c3ea52) build() { cd ${pkgname}-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DFREEGLUT_BUILD_DEMOS=OFF -DFREEGLUT_BUILD_STATIC_LIBS=OFF ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build }