xarchiver: Cleanup the Pkgfile

Signed-off-by: Leo Unglaub <leo@leo-unglaub.net>
This commit is contained in:
Leo Unglaub 2015-03-10 02:46:58 +00:00
parent 9eb58dba2e
commit 5767fa2385

View File

@ -10,20 +10,28 @@ version=0.5.2
release=2
source=(http://download.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
build ()
{
# go into the source directory
cd $SRC/$name-$version
build () {
cd $name-$version
./configure --prefix=/usr \
--libexecdir=/usr/lib/thunar \
--disable-debug
# configure xarchiver
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/thunar \
--disable-debug
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/{doc,locale}
find $PKG/usr/share -type f -name '*.desktop' \
-exec sed -r '/\[.+\]=/d' -i {} \;
sed -i $PKG/usr/share/applications/$name.desktop \
-e 's|multipart|application|g'
# make xarchiver
make
make DESTDIR=$PKG install
# cleanup
rm -rf $PKG/usr/share/{doc,locale}
find $PKG/usr/share -type f -name '*.desktop' \
-exec sed -r '/\[.+\]=/d' -i {} \;
sed -i $PKG/usr/share/applications/$name.desktop \
-e 's|multipart|application|g'
}