# Maintainer: Laurent Carlier pkgname=libepoxy pkgver=1.5.3 pkgrel=1 pkgdesc="Library handling OpenGL function pointer management" url="https://github.com/anholt/libepoxy" arch=(x86_64) license=(MIT) depends=(glibc) makedepends=(python mesa-libgl git meson doxygen graphviz) _commit=16b1481e00084682d5ae5d38178e3e418976dfae # tags/1.5.3^0 source=("git+https://github.com/anholt/libepoxy#commit=$_commit") sha256sums=('SKIP') pkgver() { cd $pkgname git describe --tags | sed 's/-/+/g' } prepare() { cd $pkgname # Reduce docs size printf '%s\n' >>doc/Doxyfile.in \ HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes } build() { arch-meson $pkgname build \ -D docs=true ninja -C build } check() { meson test -C build } package() { DESTDIR="$pkgdir" meson install -C build install -Dm644 $pkgname/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set sw=2 et: