Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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/
}
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.