here's a small patch to move source patching to a separate prepare() function, this way one can use --noextract with makepkg to resume a partial build ( I've had to do this a few times since it takes a while to build the whole thing )
diff --git a/PKGBUILD b/PKGBUILD
index 1650390..9b4efde 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -146,13 +146,23 @@ export CXXFLAGS+=' -D_LARGEFILE64_SOURCE'
# recover on systems with broken zstd support in libarchive
[[ $PKGEXT = .pkg.tar.zst ]] && PKGEXT=.pkg.tar.xz
+prepare() {
+ # openssl
+ cd "${srcdir}"/openssl-${_sslver}
+ patch -Np1 -i "${srcdir}/ca-dir.patch"
+ case ${CARCH} in
+ arm|armv6h|armv7h)
+ # special patch to omit -latomic when installing pkgconfig files
+ patch -Np1 -i "${srcdir}/openssl-3.0.7-no-atomic.patch"
+ esac
+}
+
build() {
export PKG_CONFIG_PATH="${srcdir}"/temp/usr/lib/pkgconfig
export PATH="${srcdir}/temp/usr/bin:${PATH}"
# openssl
cd "${srcdir}"/openssl-${_sslver}
- patch -Np1 -i "${srcdir}/ca-dir.patch"
case ${CARCH} in
x86_64)
openssltarget='linux-x86_64'
@@ -173,8 +183,6 @@ build() {
arm|armv6h|armv7h)
openssltarget='linux-armv4'
optflags=''
- # special patch to ommit -latomic when installing pkgconfig files
- patch -Np1 -i "${srcdir}/openssl-3.0.7-no-atomic.patch"
;;
aarch64)
openssltarget='linux-aarch64'
--
Pinned Comments
Morganamilo commented on 2022-02-20 18:30 (UTC)
There's now a custom repo and binaries again. Though only for x86_64 currently.
Custom Repo
Pre compiled binaries
https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/