Commit b5460c33 authored by Vitaly Lipatov's avatar Vitaly Lipatov

small cleanup

parent d4ed1c16
...@@ -5,6 +5,7 @@ BUILDROOT="$1" ...@@ -5,6 +5,7 @@ BUILDROOT="$1"
SPEC="$2" SPEC="$2"
PRODUCT=atom PRODUCT=atom
PRODUCTDIR=/usr/share/atom-beta
# TODO: /usr/share/atom-beta -> /usr/lib64/atom-beta # TODO: /usr/share/atom-beta -> /usr/lib64/atom-beta
...@@ -51,5 +52,5 @@ epm install --skip-installed coreutils findutils git-core glib2 grep libalsa lib ...@@ -51,5 +52,5 @@ epm install --skip-installed coreutils findutils git-core glib2 grep libalsa lib
libcairo libcups libdbus libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+3 libnspr libnss libpango libsecret \ libcairo libcups libdbus libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+3 libnspr libnss libpango libsecret \
libX11 libxcb libXcomposite libXdamage libXext libXfixes libxkbcommon libxkbfile libXrandr \ libX11 libxcb libXcomposite libXdamage libXext libXfixes libxkbcommon libxkbfile libXrandr \
sed /usr/bin/git /usr/bin/node /usr/bin/npm /usr/bin/npx util-linux which xprop \ sed /usr/bin/git /usr/bin/node /usr/bin/npm /usr/bin/npx util-linux which xprop \
node python3 node python3 rpm-build-python3
# enlightenment exo-utils seamonkey # enlightenment exo-utils seamonkey
...@@ -43,27 +43,25 @@ copy_icons_to_share() ...@@ -43,27 +43,25 @@ copy_icons_to_share()
} }
remove_file()
{
local file="$1"
[ -f $BUILDROOT/$file ] || return
rm -f $BUILDROOT/$file
subst "s|.*$file.*||" $SPEC
}
cleanup() cleanup()
{ {
subst '1iAutoProv:no' $SPEC subst '1iAutoProv:no' $SPEC
# remove cron update # remove cron update
if [ -r $BUILDROOT/etc/cron.daily/$PRODUCTCUR ] ; then remove_file /etc/cron.daily/$PRODUCTCUR
rm -f $BUILDROOT/etc/cron.daily/$PRODUCTCUR remove_file /etc/cron.daily/$PRODUCT
subst 's|.*/etc/cron.daily/.*||' $SPEC
fi
if [ -r $BUILDROOT/etc/cron.daily/$PRODUCT ] ; then
rm -f $BUILDROOT/etc/cron.daily/$PRODUCT
subst 's|.*/etc/cron.daily/.*||' $SPEC
fi
# remove unsupported file # remove unsupported file
if [ -r $BUILDROOT/usr/share/menu/*.menu ] ; then remove_file /usr/share/menu/$PRODUCT.menu
rm -f $BUILDROOT/usr/share/menu/*.menu
subst "s|.*/usr/share/menu/.*.menu.*||" $SPEC
fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment