# Template file for 'unshield'
pkgname=unshield
version=1.5.1
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="zlib-devel libtool"
short_desc="Utility extracting CAB archives from InstallShield installers"
maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="https://github.com/twogood/unshield"
distfiles="https://github.com/twogood/${pkgname}/archive/${version}.tar.gz"
checksum=34cd97ff1e6f764436d71676e3d6842dc7bd8e2dd5014068da5c560fe4661f60

libunshield_package() {
	short_desc="Libary to extract CAB archives form InstallShield installers"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

libunshield-devel_package() {
	depends="libunshield>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}

post_install() {
	vlicense LICENSE
}
