### this file is sourced not run
PKGVER=43.1
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=epiphany-$PKGVER.tar.xz
MD5SUM=b372b3a60975f0284abbb48a3d5ff0e3
SRC_URL=https://download.gnome.org/sources/epiphany/43/$TARBALL
BUNDLE=

SLACKREQ='gcr libgnome-desktop iso-codes libjson-glib libnotify libportal
libnettle webkitgtk libdazzle libhandy gnome-keyring'
SLACKDESC="epiphany: epiphany $PKGVER (Web browser)
epiphany: 
epiphany: Epiphany is a simple yet powerful GNOME web browser targeted at 
epiphany: non-technical users. Its principles are simplicity and standards 
epiphany: compliance.
epiphany: 
epiphany: 
epiphany: 
epiphany: 
epiphany: 
epiphany: 
"
SLACKSUG='seahorse'
SLACKINSTALL='glib-compile-schemas ./usr/share/glib-2.0/schemas'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	ln -s /bin/true /usr/bin/update-desktop-database && # fake desktop-file-utils
	MESONFLAGS="$MESONFLAGS   \
		-Dunit_tests=disabled \
	" &&
	pkg_build_meson &&
	pkg_build_slackdesc &&

	# run epiphany as spot
	ln -s program-spot /usr/bin/epiphany-spot &&
	sed -i -e '/Exec=/ s/epiphany/epiphany-spot/' /usr/share/applications/org.gnome.Epiphany.desktop &&

	# we don't want these
	rm -rf /usr/share/glib-2.0/schemas/gschemas.compiled \
	       /usr/share/icons/hicolor/icon-theme.cache &&

	rm -f /usr/bin/update-desktop-database &&
	true
}


