Commit 85ff745a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add codium

parent f8f73d4a
#!/bin/sh
PKGNAME=codium
SUPPORTEDARCHES="x86_64 armhf"
DESCRIPTION="Codium from the official site"
. $(dirname $0)/common.sh
VERSION="$2"
arch="$($DISTRVENDOR -a)"
pkgtype="$($DISTRVENDOR -p)"
case "$arch-$pkgtype" in
x86_64-deb)
arch=amd64
;;
armhf-rpm)
arch=armv7hl
;;
aarch64)
arch=arm64
;;
esac
PKG=$(epm tool eget --list --latest https://github.com/VSCodium/vscodium/releases "$PKGNAME-*$arch.$pkgtype") || fatal "Can't get package URL"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
epm install $repack "$PKG" || exit
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=codium
. $(dirname $0)/common.sh
move_to_opt
subst '1iAutoReq:yes,nomonolib,nomono' $SPEC
subst '1iAutoProv:no' $SPEC
remove_file /usr/bin/$PRODUCT
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT
fix_desktop_file /usr/share/codium/bin/codium
#fix_chrome_sandbox
# 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