summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d962f0808ae1ef0be06c21b89dd3c829404a3fad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Christoph Haag <christoph.haag@collabora.com>
# Contributor: Laurent Carlier <lordheavym@gmail.com>

pkgname=libepoxy-nodocs-git
pkgver=1.5.4+20+g34ecb90
pkgrel=1
pkgdesc="Library handling OpenGL function pointer management"
url="https://github.com/anholt/libepoxy"
arch=(x86_64)
license=(MIT)
depends=(glibc)
makedepends=(python git meson)
provides=("libepoxy")
conflicts=("libepoxy")
source=("git+https://github.com/anholt/libepoxy.git")
sha256sums=('SKIP')

pkgver() {
  cd libepoxy
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd libepoxy
}

build() {
  arch-meson libepoxy build -D docs=false --libdir="lib"
  ninja $NINJAFLAGS -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dm644 libepoxy/COPYING "$pkgdir/usr/share/licenses/libepoxy/LICENSE"
}