cruxports/epiphany/Pkgfile

30 lines
937 B
Plaintext
Raw Normal View History

2022-08-21 00:30:14 +00:00
# Description: A GNOME web browser based on the WebKit rendering engine
2023-09-01 11:02:44 +00:00
# URL: https://gitlab.gnome.org/GNOME/epiphany
2022-08-21 00:30:14 +00:00
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: appstream libhandy libportal iso-codes webkitgtk gcr libadwaita
# Optional: gst-plugins-good gst-plugins-bad gst-libav libnotify enchant
2022-08-21 00:30:14 +00:00
name=epiphany
2024-02-07 14:21:54 +00:00
version=45.2
2022-08-21 00:30:14 +00:00
release=1
2023-10-22 14:10:24 +00:00
source=(https://gitlab.gnome.org/GNOME/$name/-/archive/$version/$name-$version.tar.bz2)
2022-08-21 00:30:14 +00:00
build() {
2023-10-22 14:10:24 +00:00
cd $name-$version
2022-08-21 00:30:14 +00:00
# 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-21 00:30:14 +00:00
--prefix="/usr" --libexecdir="/usr/lib" \
-Ddeveloper_mode=false
ninja -C build -j ${JOBS:-1}
2022-08-21 00:30:14 +00:00
DESTDIR="${PKG}" meson install -C build
rm -r "${PKG}/usr/share/help"
}