desktop/enlightenment: Fixed (Don't clobber config files)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-27 23:03:15 -04:00 committed by Robby Workman
parent 08523c7831
commit 05df94092e
2 changed files with 5 additions and 3 deletions

View file

@ -9,4 +9,5 @@ config() {
}
config etc/enlightenment/sysactions.conf.new
config etc/xdg/menus/enlightenment.menu.new
config etc/X11/xinit/xinitrc.enlightenment17.new

View file

@ -6,7 +6,7 @@
PRGNAM=enlightenment
VERSION=${VERSION:-0.16.999.70492}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -67,10 +67,11 @@ make install DESTDIR=$PKG
# Don't clobber config files on upgrade
mv $PKG/etc/enlightenment/sysactions.conf $PKG/etc/enlightenment/sysactions.conf.new
mv $PKG/etc/xdg/menus/enlightenment.menu $PKG/etc/xdg/menus/enlightenment.menu.new
# Handle the xinitrc file
mkdir -p $PKG/etc/X11/xinit
cat $CWD/xinitrc.enlightenment17 > $PKG/etc/X11/xinit/xinitrc.enlightenment17
cat $CWD/xinitrc.enlightenment17 > $PKG/etc/X11/xinit/xinitrc.enlightenment17.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true