diff xfce/xfconf/xfconf.sh @ 796:e693904f5e20

xfce: upgrade to 4.14
author David Demelier <markand@malikania.fr>
date Mon, 12 Aug 2019 17:04:49 +0200
parents b0fd9c97761e
children 0e6c54d47dfb
line wrap: on
line diff
--- a/xfce/xfconf/xfconf.sh	Mon Aug 12 20:54:37 2019 +0200
+++ b/xfce/xfconf/xfconf.sh	Mon Aug 12 17:04:49 2019 +0200
@@ -16,13 +16,12 @@
 #
 
 PKGNAME=xfconf
-PKGVERSION=4.12.0
+PKGVERSION=4.14.1
 PKGREVISION=1
 PKGLICENSE="GPLv2"
 PKGSUMMARY="D-Bus based configuration daemon and library for xfce"
-PKGDOWNLOAD="http://archive.xfce.org/xfce/4.12/src/$PKGNAME-$PKGVERSION.tar.bz2"
+PKGDOWNLOAD="http://archive.xfce.org/xfce/${PKGVERSION%.*}/src/$PKGNAME-$PKGVERSION.tar.bz2"
 PKGDEPENDS="network/dbus
-            lib/dbus-glib
             lib/glib
             xfce/libxfce4util"
 
@@ -32,6 +31,38 @@
 : ${CFLAGS:=-O2}
 : ${LDFLAGS:=}
 : ${LIBS:=}
+: ${INTROSPECTION:=yes}
+: ${NLS:=yes}
+: ${STARTUP:=yes}
+: ${VALA:=yes}
+
+if [ "$INTROSPECTION" = "yes" ]; then
+	PKGDEPENDS="dev/gobject-introspection:build $PKGDEPENDS"
+	with_introspection="--enable-introspection"
+else
+	with_introspection="--disable-introspection"
+fi
+
+if [ "$NLS" = "yes" ]; then
+	PKGDEPENDS="core/gettext:build $PKGDEPENDS"
+	with_nls="--enable-nls"
+else
+	with_nls="--disable-nls"
+fi
+
+if [ "$STARTUP" = "yes" ]; then
+	PKGDEPENDS="desktop/startup-notification $PKGDEPENDS"
+	with_startup="--enable-startup-notification"
+else
+	with_startup="--disable-startup-notification"
+fi
+
+if [ "$VALA" = "yes" ]; then
+	PKGDEPENDS="lang/vala $PKGDEPENDS"
+	with_vala="--enable-vala"
+else
+	with_vala="--disable-vala"
+fi
 
 build()
 {
@@ -48,9 +79,12 @@
 		--host=$CHOST \
 		--prefix= \
 		--localedir=/share/locale \
-		--with-locales-dir=/share/locale
+		--with-locales-dir=/share/locale \
+		$with_introspection \
+		$with_nls \
+		$with_vala
 	make
-	make install DESTDIR=$DESTDIR itlocaledir=/share/locale
+	make install DESTDIR=$DESTDIR
 	rm -f $DESTDIR/lib/libxfconf-0.la
 
 	cd ..