Created
June 21, 2016 06:50
-
-
Save ecraven/cbca304b9abbfa3d49d43253c725b7aa to your computer and use it in GitHub Desktop.
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 | |
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