summaryrefslogtreecommitdiffstats
path: root/abs/extra/libepoxy/PKGBUILD
blob: 5ba5cf84a69dc1fc410bba6b20eb1ec4223648e9 (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
# $Id$
# Maintainer: Laurent Carlier <lordheavym@gmail.com>

pkgname=libepoxy
pkgver=1.2
pkgrel=2
pkgdesc="A library for handling OpenGL function pointer management for you"
url="https://github.com/anholt/libepoxy"
arch=('i686' 'x86_64')
license=(MIT)
depends=('glibc')
makedepends=('xorg-util-macros' 'python2' 'mesa-libgl')
options=('!libtool')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/anholt/${pkgname}/archive/v${pkgver}.tar.gz)
md5sums=('12d6b7621f086c0c928887c27d90bc30')

build() {
  cd "${pkgname}-${pkgver}"

  ./autogen.sh --prefix=/usr
}

check() {
  cd "${pkgname}-${pkgver}"

  make -k check
}

package() {
  cd "${pkgname}-${pkgver}"

  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}