summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ff2fbcec0d5a777df4846f67a8e4e3694a84d81 (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
pkgname=libepoxy-git
_name=libepoxy
pkgver=1.5.4.r20.g34ecb90
pkgrel=1
pkgdesc="Epoxy is a library for handling OpenGL function pointer management for you"
url="https://github.com/anholt/libepoxy"
arch=('i686' 'x86_64')
license=('BSD')
makedepends=("xorg-util-macros" "libx11" "python" "git" "meson")
provides=("libepoxy")
conflicts=("libepoxy")
source=("git+https://github.com/anholt/libepoxy.git")
md5sums=('SKIP')

pkgver() {
  cd $_name

  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_name"

  rm -rf _build
  meson _build --buildtype=release --prefix=/usr --libdir=/usr/lib
  ninja -C _build
}

#check() {
#  cd "$_name/_build"
#
#  ninja test
#}

package() {
  cd "$_name/_build"
  env DESTDIR="$pkgdir" ninja install
}