Browse Source

gnu/linux: include gtksourceview5 language specs in packages

use_builds_script
parent
commit
8cb4e28284
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 8
      arch/PKGBUILD.in
  2. 11
      debian/rules.in
  3. 22
      rpm/zrythm.spec.in

8
arch/PKGBUILD.in

@ -72,7 +72,7 @@ package() { @@ -72,7 +72,7 @@ package() {
cd $_rootdir
install -vDm 644 AUTHORS CONTRIBUTING.md CHANGELOG.md README.md THANKS TRANSLATORS \
-t "${pkgdir}/usr/share/doc/zrythm/"
@MESON_BIN@ install -C build --skip-subprojects=libaudec,reproc,rtmidi,rtaudio,libcyaml --destdir="${pkgdir}/"
@MESON_BIN@ install -C build --skip-subprojects=libbacktrace,libaudec,reproc,rtmidi,rtaudio,libcyaml --destdir="${pkgdir}/"
# copy all subproject libs
mv ${pkgdir}/usr/lib/*.so* ${pkgdir}/usr/lib/zrythm/
mkdir -p "${pkgdir}/usr/lib/zrythm/carla"
@ -84,12 +84,11 @@ package() { @@ -84,12 +84,11 @@ package() {
for f in `ls @BUILT_ZPLUGINS_DIR@/lib/lv2`; do
cp -RLv "@BUILT_ZPLUGINS_DIR@/lib/lv2/$f" "${pkgdir}/usr/lib/lv2/Zrythm-$f"
done
if `ls "${pkgdir}/usr/share/gtksourceview-5"`; then
if [ -d "${pkgdir}/usr/share/gtksourceview-5" ]; then
mv "${pkgdir}/usr/share/gtksourceview-5" "${pkgdir}/usr/share/zrythm/gtksourceview-5" ;
fi
# remove unused things
rm -rf "${pkgdir}/usr/include"
rm -rf "${pkgdir}/usr/lib/libbacktrace"*
rm -rf "${pkgdir}/usr/bin"/gtk*
rm -rf "${pkgdir}/usr/bin"/pango*
rm -rf "${pkgdir}/usr/lib"/gtk-4.0
@ -100,11 +99,10 @@ package() { @@ -100,11 +99,10 @@ package() {
rm -rf "${pkgdir}/usr/share"/glib-2.0/schemas/org.gtk.gtk4*
rm -rf "${pkgdir}/usr/share"/locale/*/LC_MESSAGES/gtk*
rm -rf "${pkgdir}/usr/share"/locale/*/LC_MESSAGES/libadwaita*
rm -rf "${pkgdir}/usr/share"/locale/*/LC_MESSAGES/gtksourceview*
rm -rf "${pkgdir}/usr/share"/man/man1/pango*
rm -rf "${pkgdir}/usr/share"/doc
rm -rf "${pkgdir}/usr/share"/vala
rm -rf "${pkgdir}/usr/lib/pkgconfig/gtksourceview-5.pc"
rm -rf "${pkgdir}/usr/lib/"libgtksourceview-5*
rm -rf "${pkgdir}/usr/lib/girepository-1.0"
rm -rf "${pkgdir}/usr/share"/icons/hicolor/scalable/actions
}

11
debian/rules.in vendored

@ -50,7 +50,7 @@ override_dh_auto_test: @@ -50,7 +50,7 @@ override_dh_auto_test:
override_dh_auto_install:
cd debian/build && \
PATH=$$PATH:/home/build/.local/bin \
@MESON_BIN@ install --skip-subprojects=gtksourceview5,libaudec,reproc,rtmidi,rtaudio,libcyaml \
@MESON_BIN@ install --skip-subprojects=libaudec,reproc,rtmidi,rtaudio,libcyaml \
--destdir="${CURDIR}/debian/zrythm@DASH_TRIAL@"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/include"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/libbacktrace"*
@ -83,14 +83,23 @@ override_dh_auto_install: @@ -83,14 +83,23 @@ override_dh_auto_install:
patchelf --set-rpath /usr/lib/$(DEB_HOST_MULTIARCH)/zrythm/carla:/usr/lib/$(DEB_HOST_MULTIARCH)/zrythm ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/bin/zrythm
patchelf --set-rpath /usr/lib/$(DEB_HOST_MULTIARCH)/zrythm ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/$(DEB_HOST_MULTIARCH)/zrythm/libadwaita-1.so.0
patchelf --replace-needed /usr/lib/zrythm/carla/libcarla_host-plugin.so libcarla_host-plugin.so ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/bin/zrythm
if [ -d "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/gtksourceview-5" ]; then \
mv "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/gtksourceview-5" "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/zrythm/gtksourceview-5" ; \
fi
# remove unused things
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@"/usr/include
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@"/usr/bin/gtk*
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/$(DEB_HOST_MULTIARCH)/gtk-4.0"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/$(DEB_HOST_MULTIARCH)/gtksourceview"*
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/doc"
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*
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/"locale/*/LC_MESSAGES/gtksourceview*
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/vala"
rm -rf "${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/share/icons/hicolor/scalable/actions"
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info

22
rpm/zrythm.spec.in

@ -129,7 +129,7 @@ PKG_CONFIG_PATH=@LIBRARY_PKG_CONFIG_PATH@:@CARLA_PKG_CONFIG_PATH@ \ @@ -129,7 +129,7 @@ PKG_CONFIG_PATH=@LIBRARY_PKG_CONFIG_PATH@:@CARLA_PKG_CONFIG_PATH@ \
ninja -C build
%install
@MESON_BIN@ install -C build --skip-subprojects=gtksourceview5,libaudec,reproc,rtmidi,rtaudio,libcyaml --destdir="%{buildroot}/"
@MESON_BIN@ install -C build --skip-subprojects=libaudec,reproc,rtmidi,rtaudio,libcyaml --destdir="%{buildroot}/"
mkdir -p "%{buildroot}%{_libdir}/lv2"
mkdir -p "%{buildroot}%{_libdir}/zrythm/carla"
rm -rf "%{buildroot}%{_includedir}"
@ -145,31 +145,27 @@ done @@ -145,31 +145,27 @@ done
# copy all subproject libs
mkdir -p "%{buildroot}%{_libdir}"/zrythm
mv "%{buildroot}%{_libdir}"/*.so* "%{buildroot}%{_libdir}"/zrythm/
# copy all other libs
#cp -r "%{buildroot}%{_libdir}"/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/ ; \
#done
#for libname in rsvg png; do \
#if `ls "/usr/lib/lib$${libname}"*.so*`; then \
#cp "/usr/lib/lib$${libname}"*.so* ${CURDIR}/debian/zrythm@DASH_TRIAL@/usr/lib/zrythm/ ; \
#fi ; \
#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 --set-rpath "%{_libdir}/zrythm/carla:%{_libdir}/zrythm" "%{buildroot}%{_bindir}"/zrythm
patchelf --replace-needed /usr/lib/zrythm/carla/libcarla_host-plugin.so libcarla_host-plugin.so "%{buildroot}%{_bindir}"/zrythm
if [ -d "%{buildroot}%{_datadir}/gtksourceview-5" ]; then
mv "%{buildroot}%{_datadir}/gtksourceview-5" "%{buildroot}%{_datadir}/zrythm/gtksourceview-5" ;
fi
# remove unused things
rm -rf "%{buildroot}%{_includedir}"
rm -rf "%{buildroot}%{_bindir}"/gtk*
rm -rf "%{buildroot}%{_bindir}"/pango*
rm -rf "%{buildroot}%{_libdir}"/gtk-4.0
rm -rf "%{buildroot}%{_libdir}"/pkgconfig
rm -rf "%{buildroot}%{_libdir}"/*.a
rm -rf "%{buildroot}%{_libdir}"/libgtksourceview-5*
rm -rf "%{buildroot}%{_datadir}"/doc
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*
rm -rf "%{buildroot}%{_datadir}"/vala
rm -rf "%{buildroot}%{_datadir}"/icons/hicolor/scalable/actions
%find_lang zrythm
%files -f zrythm.lang

Loading…
Cancel
Save