From 505ab9d48eb735325efd7be1b0e0f67104301682 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Sat, 22 Oct 2022 04:17:15 -0700 Subject: [PATCH] webkit2gtk: remove common webkit2gtk generates unique locale files for each version so the common package is redundant. It is being built as a dummy package temporarily to ensure that no one installs it by accident. It should be able to be removed in the next update/revbump. --- srcpkgs/webkit2gtk-common | 1 - srcpkgs/webkit2gtk/template | 25 ++++++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) delete mode 120000 srcpkgs/webkit2gtk-common diff --git a/srcpkgs/webkit2gtk-common b/srcpkgs/webkit2gtk-common deleted file mode 120000 index 8ae98428991b..000000000000 --- a/srcpkgs/webkit2gtk-common +++ /dev/null @@ -1 +0,0 @@ -webkit2gtk \ No newline at end of file diff --git a/srcpkgs/webkit2gtk/template b/srcpkgs/webkit2gtk/template index 10602fae9f2d..85b7ac2373dd 100644 --- a/srcpkgs/webkit2gtk/template +++ b/srcpkgs/webkit2gtk/template @@ -1,7 +1,7 @@ # Template file for 'webkit2gtk' pkgname=webkit2gtk version=2.38.1 -revision=1 +revision=2 wrksrc="webkitgtk-${version}" build_style=cmake build_helper="gir" @@ -31,7 +31,6 @@ makedepends="at-spi2-core-devel libjpeg-turbo-devel libpng-devel qt5-devel libmanette-devel libwpe-devel wpebackend-fdo-devel libgcrypt-devel libnuspell-devel libpsl-devel $(vopt_if x11 libXt-devel) $(vopt_if wayland 'MesaLib-devel libxkbcommon-devel wayland-devel wayland-protocols')" -depends="webkit2gtk-common" short_desc="GTK+3 port of the WebKit2 browser engine" maintainer="Orphaned " license="LGPL-2.1-or-later, BSD-2-Clause" @@ -67,7 +66,7 @@ fi if [ "$build_option_bubblewrap" ]; then hostmakedepends+=" bubblewrap xdg-dbus-proxy" makedepends+=" libseccomp-devel" - depends+=" bubblewrap xdg-dbus-proxy" + depends="bubblewrap xdg-dbus-proxy" fi if [ "$build_option_lto" -a -z "$build_option_clang" ]; then @@ -182,14 +181,6 @@ webkit2gtk-devel_package() { } } -webkit2gtk-common_package() { - short_desc="GTK port of the WebKit2 browser engine - common files" - pkg_install() { - vmove usr/share/locale/ - vmove usr/share/licenses/ - } -} - libwebkit2gtk41_package() { depends="${depends}" short_desc="GTK+3 port of the WebKit2 browser engine (soup3)" @@ -201,6 +192,12 @@ libwebkit2gtk41_package() { vmove "usr/lib/girepository-1.0/*-4.1.typelib" fi vmove "usr/lib/*-4.1.so.*" + for file in $(find ${DESTDIR}/usr/share/locale -name "*-4.1.mo"); do + vmove ${file/$DESTDIR/} + done + vlicense Source/WebCore/LICENSE-APPLE + vlicense Source/WebCore/LICENSE-LGPL-2.1 + vlicense Source/WebCore/LICENSE-LGPL-2 } } @@ -230,6 +227,12 @@ libwebkit2gtk50_package() { vmove "usr/lib/girepository-1.0/*-5.0.typelib" fi vmove "usr/lib/*-5.0.so.*" + for file in $(find ${DESTDIR}/usr/share/locale -name "*-5.0.mo"); do + vmove ${file/$DESTDIR/} + done + vlicense Source/WebCore/LICENSE-APPLE + vlicense Source/WebCore/LICENSE-LGPL-2.1 + vlicense Source/WebCore/LICENSE-LGPL-2 } }