Browse Source

debian: remove unused things before packaging

use_builds_script
parent
commit
a89c6aee9f
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 9
      debian/rules.in
  2. 5
      rpm/zrythm.spec.in

9
debian/rules.in vendored

@ -80,6 +80,15 @@ override_dh_auto_install: @@ -80,6 +80,15 @@ override_dh_auto_install:
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 --set-rpath /usr/lib/zrythm/carla:/usr/lib/zrythm ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/bin/zrythm
patchelf --set-rpath /usr/lib/zrythm ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/libadwaita-1.so.0
# remove unused things
rm "${CURDIR}/debian/zrythm@DASH_TRIAL@"/usr/bin/gtk*
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/x86_64-linux-gnu/gtk-4.0"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/x86_64-linux-gnu/pkgconfig"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/gettext"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/gtk-4.0"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/"locale/*/LC_MESSAGES/gtk*
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/"locale/*/LC_MESSAGES/libadwaita*
override_dh_strip:
echo "hello"

5
rpm/zrythm.spec.in

@ -156,15 +156,18 @@ mv "%{buildroot}%{_libdir}"/*.so* "%{buildroot}%{_libdir}"/zrythm/ @@ -156,15 +156,18 @@ mv "%{buildroot}%{_libdir}"/*.so* "%{buildroot}%{_libdir}"/zrythm/
#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 "%{_libdir}"/zrythm "%{buildroot}%{_bindir}"/zrythm
patchelf --set-rpath "%{_libdir}/zrythm/carla:%{_libdir}/zrythm" "%{buildroot}%{_bindir}"/zrythm
# remove unused things
rm "%{buildroot}%{_bindir}"/gtk*
rm "%{buildroot}%{_bindir}"/pango*
rm -rf "%{buildroot}%{_libdir}"/gtk-4.0
rm -rf "%{buildroot}%{_libdir}"/pkgconfig
rm -rf "%{buildroot}%{_libdir}"/*.a
rm -rf "%{buildroot}%{_datadir}"/gettext
rm -rf "%{buildroot}%{_datadir}"/gtk-4.0
rm -rf "%{buildroot}%{_datadir}"/locale/*/LC_MESSAGES/gtk*
rm -rf "%{buildroot}%{_datadir}"/locale/*/LC_MESSAGES/libadwaita*
rm -rf "%{buildroot}%{_datadir}"/man/man1/pango-view.1.gz
%find_lang zrythm
%files -f zrythm.lang

Loading…
Cancel
Save