1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
5 pkgname=(libepoxy libepoxy-docs)
8 pkgdesc="Library handling OpenGL function pointer management"
9 url="https://github.com/anholt/libepoxy"
13 makedepends=(git meson mesa-libgl systemd doxygen graphviz)
14 checkdepends=(xorg-server-xvfb)
16 _commit=c84bc9459357a40e46e2fec0408d04fbdde2c973 # tags/1.5.10^0
17 source=("git+https://github.com/anholt/libepoxy#commit=$_commit")
19 validpgpkeys=('53EF3DC3B63E2899271BD26322E8091EEA11BBB7') # Emmanuele Bassi <ebassi@gnome.org>
23 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
31 arch-meson libepoxy build -D docs=true
32 meson compile -C build
36 xvfb-run -s '-nolisten local' \
37 meson test -C build --print-errorlogs
41 provides=(libepoxy.so)
43 meson install -C build --destdir "$pkgdir"
45 mkdir -p doc/usr/share
46 mv {"$pkgdir",doc}/usr/share/doc
48 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libepoxy/COPYING
51 package_libepoxy-docs() {
52 pkgdesc+=" (documentation)"
57 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libepoxy/COPYING