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

xfce: upgrade to 4.14
author David Demelier <markand@malikania.fr>
date Mon, 12 Aug 2019 17:04:49 +0200
parents 25cecc6dca48
children 0e6c54d47dfb
line wrap: on
line diff
--- a/xfce/garcon/garcon.sh	Mon Aug 12 20:54:37 2019 +0200
+++ b/xfce/garcon/garcon.sh	Mon Aug 12 17:04:49 2019 +0200
@@ -16,12 +16,20 @@
 #
 
 PKGNAME=garcon
-PKGVERSION=0.4.0
+PKGVERSION=0.6.4
 PKGREVISION=1
 PKGLICENSE="LGPLv2 GFDLv11"
 PKGSUMMARY="Xfce freedesktop compliant menu implementation"
-PKGDOWNLOAD="http://archive.xfce.org/xfce/4.12/src/$PKGNAME-$PKGVERSION.tar.bz2"
-PKGDEPENDS="graphics/gtk2 lib/glib xfce/libxfce4ui xfce/libxfce4util"
+PKGDOWNLOAD="http://archive.xfce.org/xfce/4.14/src/$PKGNAME-$PKGVERSION.tar.bz2"
+PKGDEPENDS="desktop/libwnck
+            graphics/cairo
+            graphics/gtk
+            lib/glib
+            xfce/exo
+            xfce/libxfce4ui
+            xfce/libxfce4util
+            xfce/xfconf"
+PKGOPTIONS="NLS"
 
 : ${CHOST:=$(uname -m)-linux-musl}
 : ${CBUILD:=$(uname -m)-linux-musl}
@@ -29,6 +37,14 @@
 : ${CFLAGS:=-O2}
 : ${LDFLAGS:=}
 : ${LIBS:=}
+: ${NLS:=yes}
+
+if [ "$NLS" = "yes" ]; then
+	PKGDEPENDS="core/gettext:build $PKGDEPENDS"
+	with_nls="--enable-nls"
+else
+	with_nls="--disable-nls"
+fi
 
 build()
 {
@@ -43,11 +59,14 @@
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
-		--prefix=
+		--prefix= \
+		--localedir=/share/locale \
+		--with-locales-dir=/share/locale \
+		--disable-gtk2 \
+		$with_nls
 	make
 	make install DESTDIR=$DESTDIR
-	rm -f $DESTDIR/lib/libgarcon-gtk2-1.la
-	rm -f $DESTDIR/lib/libgarcon-1.la
+	rm -f $DESTDIR/lib/libgarcon*.la
 
 	cd ..
 	rm -rf $PKGNAME-$PKGVERSION