1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

main/sbsigntool: enable on loongarch64

This commit is contained in:
DWwanghao 2025-01-15 14:41:21 +08:00 committed by J0WI
parent 78218c30ff
commit 02c37fccd1

View file

@ -7,7 +7,7 @@ pkgrel=2
_ccancommit=b1f28e17227f2320d07fe052a8a48942fe17caa5
pkgdesc="Secure Boot signing tools"
url="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/"
arch="all !armhf !s390x !ppc64le !loongarch64" # limited by gnu-efi
arch="all !armhf !s390x !ppc64le" # limited by gnu-efi
license="GPL-3.0-or-later WITH cryptsetup-OpenSSL-exception"
makedepends="autoconf automake bash binutils-dev gnu-efi-dev help2man openssl-dev>3 util-linux-dev"
options="!check" # testsuite is not functional
@ -21,7 +21,7 @@ builddir="$srcdir/sbsigntools-$pkgver"
prepare() {
default_prepare
rm -rf "$builddir"/lib/ccan.git "$builddir"/lib/ccan
ln -s ../../ccan-$(echo $_ccancommit | cut -b -7) "$builddir"/lib/ccan.git
ln -s ../../ccan-"$(echo $_ccancommit | cut -b -7)" "$builddir"/lib/ccan.git
# fix ccan for musl and to work outside git checkout
sed -i -e 's,sys/unistd.h,unistd.h,g' "$builddir"/lib/ccan.git/ccan/opt/usage.c