Commit a5beb245 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack code: move to /opt

parent fb2e33f9
......@@ -5,15 +5,20 @@ BUILDROOT="$1"
SPEC="$2"
PRODUCT=code
PRODUCTDIR=/opt/$PRODUCT
mkdir -p $BUILDROOT/opt
mv $BUILDROOT/usr/share/$PRODUCT/ $BUILDROOT$PRODUCTDIR/
subst "s|/usr/share/$PRODUCT|$PRODUCTDIR|g" $SPEC
subst '1iAutoReq:yes,nomonolib,nomono' $SPEC
subst '1iAutoProv:no' $SPEC
subst 's|\(.*/usr/share/code/code.*\)|"/usr/bin/code"\n"/usr/bin/vscode"\n\1|' $SPEC
subst "s|\(.*$PRODUCTDIR/code.*\)|/usr/bin/code\n/usr/bin/vscode\n\1|" $SPEC
mkdir -p $BUILDROOT/usr/bin/
ln -rs $BUILDROOT/usr/share/code/bin/code $BUILDROOT/usr/bin/code
ln -rs $BUILDROOT/usr/share/code/bin/code $BUILDROOT/usr/bin/vscode
ln -rs $BUILDROOT$PRODUCTDIR/bin/code $BUILDROOT/usr/bin/code
ln -rs $BUILDROOT$PRODUCTDIR/bin/code $BUILDROOT/usr/bin/vscode
# install all requires packages before packing (the list have got with rpmreqs package | xargs echo)
epm install --skip-installed at-spi2-atk coreutils findutils gawk glib2 libalsa libatk libat-spi2-core libcairo libdbus libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+3 libnspr libnss libpango libsecret libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libxkbfile libXrandr libXrender libXScrnSaver libXtst sed
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