ristretto: Cleanup the Pkgfile

This Pkgfile removed the language stuff directly in the
Makefile. This can work, however in some cases i can also
fail. To be safe i removed the languages after building
the package.

Signed-off-by: Leo Unglaub <leo@leo-unglaub.net>
This commit is contained in:
Leo Unglaub 2015-03-04 00:08:50 +00:00
parent ad9ec23e6d
commit dd1ca23acb

View File

@ -10,19 +10,27 @@ version=0.8.0
release=1
source=(http://archive.xfce.org/src/apps/$name/${version%.*}/$name-$version.tar.bz2)
build() {
cd $name-$version
build ()
{
# go into the source dircetory
cd $SRC/$name-$version
# remove po stuff
sed -i Makefile.* -e '/^SUBDIRS =/ s/po //' -e '/^SUBDIRS =/ s/ docs//'
./configure --prefix=/usr \
--disable-nls \
--disable-debug
# configure ristretto
./configure \
--prefix=/usr \
--disable-nls \
--disable-debug \
--disable-dependency-tracking
make
make DESTDIR=$PKG install
find $PKG/usr/share -type f -name '*.desktop' \
-exec sed -r '/\[.+\]=/d' -i {} \;
# make ristretto
make
make DESTDIR=$PKG install
# cleanup the desktop file
rm -r $PKG/usr/share/locale
find $PKG/usr/share -type f -name '*.desktop' \
-exec sed -r '/\[.+\]=/d' -i {} \;
}