xfce4-screenshooter: Cleanup the Pkgfile

Signed-off-by: Leo Unglaub <leo@leo-unglaub.net>
This commit is contained in:
Leo Unglaub 2015-03-06 02:06:25 +00:00
parent 5ea0f8baf6
commit fd6edf046f

View File

@ -10,21 +10,31 @@ version=1.8.2
release=1 release=1
source=(http://archive.xfce.org/src/apps/$name/${version%.*}/$name-$version.tar.bz2) source=(http://archive.xfce.org/src/apps/$name/${version%.*}/$name-$version.tar.bz2)
build () { build ()
cd $name-$version {
# go into the source directory
cd $SRC/$name-$version
./configure --prefix=/usr \
--mandir=/usr/man \
--libexecdir=/usr/lib \
--disable-nls \
--disable-static \
--disable-debug
make # configure xfce4-screenshooter
make install DESTDIR=$PKG ./configure \
--prefix=/usr \
--mandir=/usr/man \
--libexecdir=/usr/lib \
--disable-nls \
--disable-static \
--disable-debug \
--disable-dependency-tracking
rm -rf $PKG/usr/share/locale
rm -rf $PKG/usr/share/xfce4/doc/{??,??_??,???} # make xfce4-screenshooter
find $PKG/usr/share -type f -name '*.desktop' \ make
-exec sed -r '/\[.+\]=/d' -i {} \; make install DESTDIR=$PKG
# cleanup
rm -rf $PKG/usr/share/locale
rm -rf $PKG/usr/share/xfce4/doc/{??,??_??,???}
find $PKG/usr/share -type f -name '*.desktop' \
-exec sed -r '/\[.+\]=/d' -i {} \;
} }