Skip to content

Instantly share code, notes, and snippets.

@TingPing TingPing/PKGBUILD Secret
Created Feb 6, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.