xfce4-screenshooter: Cleanup the Pkgfile
Signed-off-by: Leo Unglaub <leo@leo-unglaub.net>
This commit is contained in:
parent
5ea0f8baf6
commit
fd6edf046f
@ -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 {} \;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user