aports/community/unshield/APKBUILD
2025-04-10 19:11:01 +00:00

41 lines
1.1 KiB
Text

# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=unshield
pkgver=1.6.2
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 armv7"
url="https://github.com/twogood/unshield"
license="MIT"
makedepends="cmake samurai 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 -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=None
cmake --build build
}
check() {
UNSHIELD="$builddir"/src/unshield bash run-tests.sh
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
fd3b604e8aa3347a1dc58396d6b9a74b167718908a7f3419dce0a57caaa5d67c3e816da74f05d6690707d09348f9898ea321a80e85a01717eedbf18e60abb3d4 unshield-1.6.2.tar.gz
"