# Template file for 'unshield'
pkgname=unshield
version=1.4.3
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=aa8c978dc0eb1158d266eaddcd1852d6d71620ddfc82807fe4bf2e19022b7bab

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
}
