Skip to content

Instantly share code, notes, and snippets.

@kornrunner
Forked from ecraven/PKGBUILD
Last active October 10, 2016 20:00
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 kornrunner/ef6c17efea96782d8fb3585c74a4c186 to your computer and use it in GitHub Desktop.
Save kornrunner/ef6c17efea96782d8fb3585c74a4c186 to your computer and use it in GitHub Desktop.
# Contributor: Yauheni Kirylau <yawghen-gmail-dot-com>
_pkgname=libui
pkgname=${_pkgname}-git
pkgver=r2679.ec15e25
pkgrel=1
pkgdesc='A portable GUI library for C'
arch=('i686' 'x86_64')
url='https://github.com/andlabs/libui'
license=('MIT')
depends=('gtk3' 'libx11' 'libxcb' 'libffi')
makedepends=('make' 'gcc')
provides=('libui')
conflicts=('libui')
source=("$pkgname::git://github.com/andlabs/libui.git")
md5sums=('SKIP')
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $pkgname
mkdir -p build
cd build
cmake ..
make
}
package() {
cd $pkgname
mkdir -p $pkgdir/usr/{lib,include}
install build/out/libui.so ${pkgdir}/usr/lib/
install build/out/libui.so.0 ${pkgdir}/usr/lib/
install ui.h ${pkgdir}/usr/include/
install ui_unix.h ${pkgdir}/usr/include/
install uitable.h ${pkgdir}/usr/include/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment