Skip to content
Snippets Groups Projects
Commit a90ef817 authored by alice's avatar alice
Browse files

community/unshield: build with samurai

parent 23f3016b
No related branches found
No related tags found
No related merge requests found
......@@ -2,14 +2,14 @@
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=unshield
pkgver=1.5.1
pkgrel=0
pkgrel=1
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 zlib-dev"
makedepends="cmake samurai zlib-dev"
checkdepends="bash"
source="$pkgname-$pkgver.tar.gz::https://github.com/twogood/unshield/archive/$pkgver.tar.gz"
subpackages="
......@@ -21,20 +21,21 @@ options="!check"
# https://github.com/twogood/unshield/issues/99
build() {
cmake -B build . \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=None
make -C build
cmake --build build
}
check() {
UNSHIELD=$builddir/src/unshield bash run-tests.sh
UNSHIELD="$builddir"/src/unshield bash run-tests.sh
}
package() {
make -C build DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
acb130c461bed66dc3804394be067a68aea96a7cd20b348e713f64a11bf642b74f68fc172f220a9790b44573abbe01ed4585191158f27c40e863918a7342c1ca unshield-1.5.1.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment