void-packages/srcpkgs/ois/template

30 lines
764 B
Bash

# Template file for 'ois'
pkgname=ois
version=1.5
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libXaw-devel"
short_desc="Object oriented input system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="zlib-acknowledgement"
homepage="https://wgois.github.io/OIS/"
distfiles="https://github.com/wgois/OIS/archive/v${version}.tar.gz"
checksum=aa3e6b840b1149bb06835e04365957f4659c08b3e3095a48b289050f1637a174
post_install() {
vlicense LICENSE.md
}
ois-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/libOIS.so
# Compatibility with previous versions
ln -srv ${PKGDESTDIR}/usr/include/{ois,OIS}
}
}