cruxports/epiphany/Pkgfile

30 lines
942 B
Plaintext
Raw Normal View History

2022-08-20 20:30:14 -04:00
# Description: A GNOME web browser based on the WebKit rendering engine
# URL: https://wiki.gnome.org/Apps/Web
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: appstream libhandy libportal iso-codes webkitgtk-60 gcr libadwaita
# Optional: gst-plugins-good gst-plugins-bad gst-libav libnotify enchant
2022-08-20 20:30:14 -04:00
name=epiphany
version=44.3
2022-08-20 20:30:14 -04:00
release=1
source=(https://download.gnome.org/sources/${name}/${version%.*}/${name}-${version}.tar.xz)
build() {
cd "${name}-${version}"
# fail the build if libportal was not compiled against gtk4
[ -e /usr/lib/pkgconfig/libportal-gtk4.pc ] || \
{ echo "You need to rebuild libportal with gtk4 installed."; exit 1; }
sed -e "/^subdir('po')/d" \
-i meson.build
meson setup build \
2022-08-20 20:30:14 -04:00
--prefix="/usr" --libexecdir="/usr/lib" \
-Ddeveloper_mode=false
ninja -C build -j ${JOBS:-1}
2022-08-20 20:30:14 -04:00
DESTDIR="${PKG}" meson install -C build
rm -r "${PKG}/usr/share/help"
}