From a90ef81768fda45b2448d6e5eef4c24c38e7ccaa Mon Sep 17 00:00:00 2001
From: psykose <alice@ayaya.dev>
Date: Fri, 14 Oct 2022 14:18:00 +0000
Subject: [PATCH] community/unshield: build with samurai

---
 community/unshield/APKBUILD | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/community/unshield/APKBUILD b/community/unshield/APKBUILD
index f26a47e69831..45076af28214 100644
--- a/community/unshield/APKBUILD
+++ b/community/unshield/APKBUILD
@@ -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
 "
-- 
GitLab