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)
15 _commit=c84bc9459357a40e46e2fec0408d04fbdde2c973 # tags/1.5.10^0
16 source=("git+https://github.com/anholt/libepoxy#commit=$_commit")
18 validpgpkeys=('53EF3DC3B63E2899271BD26322E8091EEA11BBB7') # Emmanuele Bassi <ebassi@gnome.org>
22 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
30 arch-meson libepoxy build -D docs=true
31 meson compile -C build
35 xvfb-run -s '-nolisten local' \
36 meson test -C build --print-errorlogs
40 provides=(libepoxy.so)
42 meson install -C build --destdir "$pkgdir"
44 mkdir -p doc/usr/share
45 mv {"$pkgdir",doc}/usr/share/doc
47 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libepoxy/COPYING
50 package_libepoxy-docs() {
51 pkgdesc+=" (documentation)"
56 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libepoxy/COPYING