Commit c458de42 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add DVJ2

parent 62c755c4
#!/bin/sh
PKGNAME=DJV2
SUPPORTEDARCHES="x86_64"
DESCRIPTION="DVJ - Professional media review software for VFX, animation, and film production"
. $(dirname $0)/common.sh
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
mask="DJV2-*.x86_64.rpm"
;;
deb)
mask="DJV2_*_amd64.deb"
;;
esac
arch=amd64
PKGURL=$(epm tool eget --list --latest https://github.com/darbyjohnston/DJV/releases $mask) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=djv
PRODUCTCUR=DVJ2
PRODUCTDIR=/opt/DVJ2
. $(dirname $0)/common.sh
move_to_opt /usr/local/DJV2
subst '1iAutoProv:no' $SPEC
rm -v $BUILDROOT/usr/bin/djv
add_bin_exec_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT
add_bin_link_command $PRODUCTCUR $PRODUCT
fix_desktop_file /usr/local/DJV2/bin/djv.sh $PRODUCT
remove_file $PRODUCTDIR/etc/Color/nuke-default/make.py
remove_file $PRODUCTDIR/etc/Color/spi-anim/makeconfig_anim.py
remove_file $PRODUCTDIR/etc/Color/spi-vfx/make_vfx_ocio.py
epm assure patchelf || exit
for i in $BUILDROOT$PRODUCTDIR/bin/{djv,djv_*} ; do
a= patchelf --set-rpath '$ORIGIN/../lib' $i
done
# 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