From 9eb58dba2e01fa3b8c74b46f309fd17e08d751cd Mon Sep 17 00:00:00 2001 From: Leo Unglaub Date: Tue, 10 Mar 2015 02:31:07 +0000 Subject: [PATCH] xfce4-panel: Cleanup the Pkgfile I also removed "empty" delete statements that had not effect what so ever. Signed-off-by: Leo Unglaub --- xfce4-panel/Pkgfile | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/xfce4-panel/Pkgfile b/xfce4-panel/Pkgfile index 55b19e5..f3d6264 100644 --- a/xfce4-panel/Pkgfile +++ b/xfce4-panel/Pkgfile @@ -10,17 +10,31 @@ version=4.12.0 release=1 source=(http://archive.xfce.org/src/xfce/$name/${version%.*}/$name-$version.tar.bz2) -build () { - cd $name-$version +build () +{ + # go into the source directory + cd $SRC/$name-$version - ./configure --prefix=/usr \ - --libexecdir=/usr/lib \ - --disable-debug - make - make DESTDIR=$PKG install + # configure the panel + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --disable-debug \ + --disable-nls \ + --disable-dependency-tracking \ + --disable-gtk3 \ + --disable-gtk-doc \ + --disable-gtk-doc-html - rm -rf $PKG/usr/share/{locale,doc,gtk-doc} - find $PKG/usr/share/xfce4/panel/plugins -type f -name '*.desktop' \ - -exec sed -r '/\[.+\]=/d' -i {} \; + + # make the plugin + make + make DESTDIR=$PKG install + + + # cleanup + rm -rf $PKG/usr/share/{locale,gtk-doc} + find $PKG/usr/share/xfce4/panel/plugins -type f -name '*.desktop' \ + -exec sed -r '/\[.+\]=/d' -i {} \; }