void-packages/srcpkgs/libui/template
2018-08-12 07:40:00 -03:00

35 lines
938 B
Bash

# Template file for 'libui'
pkgname=libui
version=alpha4
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="gtk+3-devel"
depends="libX11 libffi"
short_desc="Simple and portable (but not inflexible) GUI library in C"
maintainer="Gangsta Cat <grumpy@keemail.me>"
license="MIT"
homepage="https://github.com/andlabs/libui"
distfiles="https://github.com/andlabs/libui/archive/${version}.tar.gz"
checksum=087bbbd73ae4bb1d2e93b7821b92fb0512dd377f5a7478120c79a411a5f4fe99
do_install() {
vinstall build/out/libui.so 755 /usr/lib/
vinstall build/out/libui.so.0 755 /usr/lib/
vinstall ui.h 755 /usr/include/
vinstall ui_unix.h 755 /usr/include/
#vinstall uitable.h 755 /usr/include/ # present in git, uncomment later
}
post_install() {
vlicense LICENSE
}
libui-devel_package() {
depends="libui>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/
vmove usr/lib/*.so
}
}