Browse Source

debian: patch elf to add rpath /usr/lib/zrythm

use_builds_script
Alexandros Theodotou 8 months ago
parent
commit
3d5efaeeaf
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 2
      debian/make_debian_pkg.sh.in
  2. 3
      debian/rules.in

2
debian/make_debian_pkg.sh.in vendored

@ -55,7 +55,7 @@ echo "3.0 (native)" > $deb_src_dir/format @@ -55,7 +55,7 @@ echo "3.0 (native)" > $deb_src_dir/format
tar -xzf $deb_source_tarball -C $private_dir
pushd $deb_parent_dir
debuild --no-lintian -us -uc
debuild -us -uc
popd
mv "$private_dir/zrythm$dash_trial"_*.deb "$out_pkg"

3
debian/rules.in vendored

@ -67,7 +67,7 @@ override_dh_auto_install: @@ -67,7 +67,7 @@ override_dh_auto_install:
# copy all subproject libs
mv ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib//x86_64-linux-gnu/*.so* ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/
# copy all other libs
cp -r /usr/lib/x86_64-linux-gnu/gtk-4.0 ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/
#cp -r /usr/lib/x86_64-linux-gnu/gtk-4.0 ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/
cp -r /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0 ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/
for libname in gtk epoxy graphene gdk freetype pango harfbuzz cairo pixman fontconfig fribidi json-glib gio gmodule gobject gthread glib; do \
cp "/usr/lib/x86_64-linux-gnu/lib$${libname}"*.so* ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/ ; \
@ -77,6 +77,7 @@ override_dh_auto_install: @@ -77,6 +77,7 @@ override_dh_auto_install:
done
sed -i 's|/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders|/usr/lib/zrythm/gdk-pixbuf-2.0/2.10.0/loaders|g' ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/gdk-pixbuf-2.0/2.10.0/loaders.cache
cat ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/gdk-pixbuf-2.0/2.10.0/loaders.cache
patchelf --add-rpath /usr/lib/zrythm ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/bin/zrythm
override_dh_strip:
echo "hello"

Loading…
Cancel
Save