summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a0ca088d4af3398a42d273effa69a63f1d38455 (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-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 mesa-libgl git meson doxygen graphviz)
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=true --libdir="lib"
  ninja -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"
}