Commit b65b3b97 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: add iwbdriver support (usable on 32 bit platform only)

parent af231daf
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=IWB_Driver
ICONFILE=ibw-driver.png
. $(dirname $0)/common.sh
move_to_opt /usr/bin/IWB_Driver
subst "s|/usr/bin/IWB_Driver/run.sh|ibw-driver|" $BUILDROOT/usr/share/applications/iwb-driver.desktop
subst "s|/usr/bin/IWB_Driver/icon.png|$ICONFILE|" $BUILDROOT/usr/share/applications/iwb-driver.desktop
add_bin_exec_command ibw-driver $PRODUCTDIR/$PRODUCT
# obsoleted
remove_file $PRODUCTDIR/IWB_Driver.sh
remove_file $PRODUCTDIR/run.sh
remove_file $PRODUCTDIR/sudo.sh~
cd $BUILDROOT$PRODUCTDIR/
chmod -R a+rX .
mkdir -p $BUILDROOT/usr/share/pixmaps/
cp icon.png $BUILDROOT/usr/share/pixmaps/$ICONFILE
pack_file /usr/share/pixmaps/$ICONFILE
epm assure patchelf || exit
for i in IWB_Driver libQt*.so.* ; do
a= patchelf --set-rpath '$ORIGIN' $i
done
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