void-packages/srcpkgs/libui/template

35 lines
939 B
Bash

# Template file for 'libui'
pkgname=libui
version=alpha4.1
revision=2
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=f51a9e20e9f9a4c0bce1571ee37f203f42de33e3ac7359a6aac87a54798e8716
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
}
}