cruxports/epiphany/Pkgfile

30 lines
937 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
2023-09-01 07:02:44 -04:00
# URL: https://gitlab.gnome.org/GNOME/epiphany
2022-08-20 20:30:14 -04: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-20 20:30:14 -04:00
name=epiphany
2024-02-07 09:21:54 -05:00
version=45.2
2022-08-20 20:30:14 -04:00
release=1
2023-10-22 10:10:24 -04:00
source=(https://gitlab.gnome.org/GNOME/$name/-/archive/$version/$name-$version.tar.bz2)
2022-08-20 20:30:14 -04:00
build() {
2023-10-22 10:10:24 -04:00
cd $name-$version
2022-08-20 20:30:14 -04: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-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"
}