Skip to content

Instantly share code, notes, and snippets.

@tonylambiris tonylambiris/PKGBUILD
Last active May 11, 2019

Embed
What would you like to do?
Updated PKGBUILD for libui-git
# Contributor: Yauheni Kirylau <yawghen-gmail-dot-com>
pkgname=libui-git
pkgver=alpha4.1.r314.g17486fd1
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' 'cmake')
provides=('libui')
conflicts=('libui')
source=("$pkgname::git+https://github.com/andlabs/libui")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
meson build
ninja -C build
cd build/meson-out
ln -sf libui.so.0 libui.so
}
package() {
cd "$srcdir/$pkgname"
mkdir -p $pkgdir/usr/{lib,include}
install build/meson-out/libui.so ${pkgdir}/usr/lib/
install build/meson-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.