aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unshield/APKBUILD
blob: 53fc21130ae24e915539f45de26dc52f9d0f9177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
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"