# Contributor: Clayton Craft # Maintainer: Clayton Craft pkgname=unshield pkgver=1.4.3 pkgrel=0 pkgdesc="Extracts CAB files from InstallShield installers" # Note: only tested on the following archs, may work on others too but not # adding them until this has been confirmed arch="x86_64 aarch64" url="https://github.com/twogood/unshield" license="MIT" makedepends="cmake zlib-dev" checkdepends="bash" source="$pkgname-$pkgver.tar.gz::https://github.com/twogood/unshield/archive/$pkgver.tar.gz" subpackages=" $pkgname-doc $pkgname-dev " options="!check" # Package includes unit tests but they fail to execute: # https://github.com/twogood/unshield/issues/99 build() { cmake -B build . \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=None make -C build } check() { UNSHIELD=$builddir/src/unshield bash run-tests.sh } package() { make -C build DESTDIR="$pkgdir" install } sha512sums="2f058e0a28d0497e2afe231ded1b1bb16745401398eb1035e628d263351b10a1343c9664f3937b8912755db9dc5236a1b43e9bcba596affb7aa8b036f49382aa unshield-1.4.3.tar.gz"