39 lines
996 B
Bash
39 lines
996 B
Bash
pkgname=libepoxy
|
|
pkgver=1.5.10
|
|
pkgdesc="Library handling OpenGL function pointer management"
|
|
url="https://github.com/anholt/libepoxy"
|
|
arch=(x86_64)
|
|
license=(MIT)
|
|
depends=(glibc libglvnd)
|
|
makedepends=(meson)
|
|
checkdepends=(xorg-server-xvfb)
|
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
|
urls=("https://github.com/anholt/${pkgname}/archive/${pkgver}.tar.gz")
|
|
sha512sums=("6786f31c6e2865e68a90eb912900a86bf56fd3df4d78a477356886ac3b6ef52ac887b9c7a77aa027525f868ae9e88b12e5927ba56069c2e115acd631fca3abee")
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
local meson_args=(
|
|
--prefix=/usr
|
|
--buildtype=release
|
|
--wrap-mode=nodownload
|
|
-D python.bytecompile=1
|
|
-D egl=yes
|
|
-D glx=no
|
|
-D x11=false
|
|
-D tests=false
|
|
)
|
|
meson setup build "${meson_args[@]}"
|
|
meson compile -C build
|
|
}
|
|
|
|
src_install() {
|
|
meson install -C build --destdir "$pkgdir"
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
|
|
}
|
|
|
|
# vim:ft=sh syn=sh et sw=2:
|