vp-build/srcpkgs/libui/template
2016-11-14 00:26:32 -05:00

36 lines
940 B
Bash

# Template file for 'libui'
pkgname=libui
version=alpha3.1
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=945ee9abacffafa93b5cf941bddfbe0bd0d4b3a8c7f8b0256779e24249f57679
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
}
}