summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/netsurf/PKGBUILD13
1 files changed, 11 insertions, 2 deletions
diff --git a/libre/netsurf/PKGBUILD b/libre/netsurf/PKGBUILD
index 757084ec0..fd1f3be50 100644
--- a/libre/netsurf/PKGBUILD
+++ b/libre/netsurf/PKGBUILD
@@ -26,7 +26,10 @@ sha256sums=('23f92a0940f577b9605f2e54786fea3521680d32d6c00f2a3db1eae3f29e3686'
prepare() {
cd "$pkgname-$pkgver"
- patch -Np1 -i "$srcdir/netsurf-remove_webp.patch"
+
+ if [ "$CARCH" == "armv7h" ]; then
+ patch -Np1 -i "$srcdir/netsurf-remove_webp.patch"
+ fi
# remove non-privacy search engines
sed -i '\|Google|d
@@ -100,10 +103,16 @@ prepare() {
}
build() {
+ if [ "$CARCH" == "armv7h" ]; then
+ extra="NETSURF_USE_WEBP=NO"
+ else
+ extra="NETSURF_USE_WEBP=YES"
+ fi
+
make -C "$pkgname-$pkgver" \
PREFIX=/usr \
TARGET=gtk \
- NETSURF_USE_WEBP=NO \
+ $extra \
NETSURF_USE_VIDEO=NO \
NETSURF_USE_JS=NO \
NETSURF_USE_MOZJS=NO # Javascript is disabled, for now. See FS#41582