librewolf.sh 891 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"

PRODUCT=librewolf

8 9 10
PREINSTALL_PACKAGES="fontconfig glib2 libalsa libatk libcairo libcairo-gobject libdbus libdbus-glib libfreetype libgdk-pixbuf libgio libgtk+3 libharfbuzz libpango libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst"


11 12 13 14 15 16
. $(dirname $0)/common.sh

subst '1iAutoReq:yes,noshell,nomonolib,nomono,nopython' $SPEC
subst '1iAutoProv:no' $SPEC

move_to_opt
17
fix_desktop_file "/usr/share/$PRODUCT/$PRODUCT"
18 19 20 21

rm -f $BUILDROOT/usr/bin/librewolf
add_bin_link_command

22
if epm assure patchelf ; then
23 24 25 26 27 28 29
for i in $BUILDROOT/$PRODUCTDIR/{lib*.so,plugin-container} ; do
    a= patchelf --set-rpath '$ORIGIN/' $i || continue
done

for i in $BUILDROOT/$PRODUCTDIR/gmp-clearkey/0.1/lib*.so ; do
    a= patchelf --set-rpath '$ORIGIN/../../' $i || continue
done
30
fi