Skip to content

Instantly share code, notes, and snippets.

@TingPing
Created February 6, 2017 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TingPing/5da5a3051916a2daa3e049f7e16c968c to your computer and use it in GitHub Desktop.
Save TingPing/5da5a3051916a2daa3e049f7e16c968c to your computer and use it in GitHub Desktop.
pkgname=libepoxy-git
_name=libepoxy
pkgver=1.4.0.r0.g9628670
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
ninja -C _build
}
#check() {
# cd "$_name/_build"
#
# ninja test
#}
package() {
cd "$_name/_build"
env DESTDIR="$pkgdir" ninja install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment