Commit 2a541525 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack librewolf: add support for rpm and deb systems

parent c6ba29ec
......@@ -6,9 +6,26 @@ DESCRIPTION="LibreWolf - a custom version of Firefox, focused on privacy, securi
. $(dirname $0)/common.sh
arch=amd64
pkgtype=deb
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKG="https://rpm.librewolf.net/pool/librewolf*.rpm"
;;
deb)
PKG="https://deb.librewolf.net/pool/focal/main/libr/librewolf/librewolf_*all.deb"
;;
*)
fatal "Package target $pkgtype is not supported yet"
;;
esac
PKG=$(epm tool eget --list --latest https://deb.librewolf.net/pool/focal/main/libr/librewolf/librewolf_*all.deb) || fatal "Can't get package URL"
case "$(epm print info -s)" in
alt)
# uses old glibc needed for ALT p10
PKG="https://deb.librewolf.net/pool/focal/main/libr/librewolf/librewolf_*all.deb"
epm install --repack $PKG
exit
;;
esac
epm install --repack "$PKG"
epm install "$PKG"
......@@ -13,8 +13,6 @@ subst '1iAutoProv:no' $SPEC
move_to_opt
subst "s|/usr/share/$PRODUCT/$PRODUCT|$PRODUCT|" $BUILDROOT/usr/share/applications/start-$PRODUCT.desktop
cleanup
rm -f $BUILDROOT/usr/bin/librewolf
add_bin_link_command
......@@ -26,3 +24,5 @@ done
for i in $BUILDROOT/$PRODUCTDIR/gmp-clearkey/0.1/lib*.so ; do
a= patchelf --set-rpath '$ORIGIN/../../' $i || continue
done
epm --skip-installed install 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
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