Last active
May 11, 2019 10:07
-
-
Save tonylambiris/6804b2e50ba6823d3c1af6349f5fb225 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for libui-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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