Commit 4d33b206 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack net.downloadhelper.coapp: use ffmpeg and xdg-open for the system

parent 155ad627
......@@ -4,13 +4,26 @@ BUILDROOT="$1"
SPEC="$2"
PREINSTALL_PACKAGES="ffmpeg ffplay ffprobe xdg-open"
. $(dirname $0)/common.sh
subst '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $SPEC
# fix libdir
install_file /usr/lib/mozilla/native-messaging-hosts/net.downloadhelper.coapp.json /usr/lib64/mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
remove_dir /usr/lib
#subst '1iAutoReq:no' $SPEC
# use ffmpeg from the system
remove_dir /opt/net.downloadhelper.coapp/converter/build/linux/64
mkdir -p opt/net.downloadhelper.coapp/converter/build/linux/64
pack_dir /opt/net.downloadhelper.coapp/converter/build/linux/64
for i in ffplay ffmpeg ffprobe ; do
ln -s /usr/bin/$i ./opt/net.downloadhelper.coapp/converter/build/linux/64/$i
pack_file /opt/net.downloadhelper.coapp/converter/build/linux/64/$i
done
# use xdg-open from the system
rm -v ./opt/net.downloadhelper.coapp/bin/xdg-open
ln -s /usr/bin/xdg-open ./opt/net.downloadhelper.coapp/bin/xdg-open
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