summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrealgagu2018-12-02 21:08:51 -0500
committerfrealgagu2018-12-02 21:08:51 -0500
commit6f099f7cf7ea32ceca3e935c22b23535f087a733 (patch)
tree69ad27981c80741fdbdaea44c665691d4424af05
parent8fbf685458e919ca1a1b474aa1462f273d70129d (diff)
downloadaur-6f099f7cf7ea32ceca3e935c22b23535f087a733.tar.gz
Updating maintainer. Removing dependencies already satisfied.
-rw-r--r--.SRCINFO59
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD108
-rw-r--r--enchant-2.x.patch8
-rw-r--r--icu59.patch19
-rw-r--r--pkgconfig-enchant-2.patch8
-rw-r--r--webkitgtk-2.4.9-abs.patch18
7 files changed, 120 insertions, 108 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8e298707a9b9..4af031d52b27 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,66 +1,60 @@
pkgbase = webkitgtk
pkgdesc = Legacy Web content engine
pkgver = 2.4.11
- pkgrel = 14
+ pkgrel = 15
epoch = 3
url = https://webkitgtk.org/
install = webkitgtk.install
+ arch = armv7h
arch = i686
arch = x86_64
- arch = armv7h
license = custom
- makedepends = gtk3
- makedepends = gtk2
- makedepends = gperf
makedepends = gobject-introspection
- makedepends = python2
+ makedepends = gperf
+ makedepends = gtk2
+ makedepends = gtk3
makedepends = mesa
+ makedepends = python2
makedepends = ruby
- depends = libxt
- depends = libxslt
- depends = sqlite
- depends = libsoup
depends = enchant>=2.2
- depends = libgl
depends = geoclue2
depends = gst-plugins-base-libs
+ depends = harfbuzz-icu
+ depends = libgl
depends = libsecret
depends = libwebp
- depends = harfbuzz-icu
- depends = icu>=61
+ depends = libxslt
+ depends = libxt
+ optdepends = gst-libav: nonfree media decoding
optdepends = gst-plugins-base: free media decoding
optdepends = gst-plugins-good: media decoding
- optdepends = gst-libav: nonfree media decoding
options = !emptydirs
source = https://webkitgtk.org/releases/webkitgtk-2.4.11.tar.xz
source = webkitgtk-2.4.9-abs.patch
- source = icu59.patch
source = enchant-2.x.patch
+ source = icu59.patch
source = pkgconfig-enchant-2.patch
sha256sums = 588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7
- sha256sums = ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70
- sha256sums = a1118b3c9317806438c1e2f46f17e15556aae34665f739ca72b94b10b16ae422
- sha256sums = 8db282f3b7f0e21ff51121c2579466c3194475a20d35c4fbd0e53f35b5639919
- sha256sums = df8284004f25d189184aab1009df696c915212e0e439a555dbd0dbec06111e2e
+ sha256sums = e40f1e08665e1646ebc490141678f26c9c4a2792207fdf7c05978547eae9f61c
+ sha256sums = 7e37e059f071aaef93e387675de1a0c6a3dcf61ef67a3221a078caca69e22079
+ sha256sums = 4e94e35b036f8a87a64e02d747d4103c0553dfe637fda372785c2b95211445ca
+ sha256sums = a1e2f24b28273746b2fbaecef42495f6314c76b16a446c22dc123e6a3afb58c8
pkgname = webkitgtk
pkgdesc = Legacy Web content engine for GTK+ 3
- depends = libxt
- depends = libxslt
- depends = sqlite
- depends = libsoup
depends = enchant>=2.2
- depends = libgl
depends = geoclue2
depends = gst-plugins-base-libs
+ depends = harfbuzz-icu
+ depends = libgl
depends = libsecret
depends = libwebp
- depends = harfbuzz-icu
- depends = icu>=61
+ depends = libxslt
+ depends = libxt
depends = gtk3
+ optdepends = gst-libav: nonfree media decoding
optdepends = gst-plugins-base: free media decoding
optdepends = gst-plugins-good: media decoding
- optdepends = gst-libav: nonfree media decoding
optdepends = gtk2: Netscape plugin support
provides = webkitgtk3=2.4.11
provides = libwebkit3=2.4.11
@@ -71,18 +65,15 @@ pkgname = webkitgtk
pkgname = webkitgtk2
pkgdesc = Legacy Web content engine for GTK+ 2
- depends = libxt
- depends = libxslt
- depends = sqlite
- depends = libsoup
depends = enchant>=2.2
- depends = libgl
depends = geoclue2
depends = gst-plugins-base-libs
+ depends = harfbuzz-icu
+ depends = libgl
depends = libsecret
depends = libwebp
- depends = harfbuzz-icu
- depends = icu>=61
+ depends = libxslt
+ depends = libxt
depends = gtk2
provides = libwebkit=2.4.11
conflicts = libwebkit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..bc3f40e8dcf1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+webkitgtk-*.pkg.tar.xz
+webkitgtk2-*.pkg.tar.xz
+webkitgtk-*.tar.xz
+webkitgtk-*.log
+webkitgtk2-*.log
+PKGBUILD-namcap.log
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
index ef8a41362d61..7dbd778fe292 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,55 +1,56 @@
-# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
+# Maintainer: Fredy GarcĂ­a <frealgagu at gmail.com>
+# Contributor: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: foutrelis
# Contributor: Andreas Radke <andyrtr@archlinux.org>
pkgbase=webkitgtk
pkgname=(webkitgtk webkitgtk2)
-epoch=3
pkgver=2.4.11
-pkgrel=14
+pkgrel=15
+epoch=3
pkgdesc="Legacy Web content engine"
-arch=(i686 x86_64 armv7h)
-url="https://webkitgtk.org/"
-license=(custom)
-depends=(libxt libxslt sqlite libsoup 'enchant>=2.2' libgl geoclue2 gst-plugins-base-libs
- libsecret libwebp harfbuzz-icu 'icu>=61')
-makedepends=(gtk3 gtk2 gperf gobject-introspection python2 mesa ruby)
-optdepends=('gst-plugins-base: free media decoding'
- 'gst-plugins-good: media decoding'
- 'gst-libav: nonfree media decoding')
-options=(!emptydirs)
-install=webkitgtk.install
-source=(https://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz
- webkitgtk-2.4.9-abs.patch
- icu59.patch
- enchant-2.x.patch
- pkgconfig-enchant-2.patch)
-sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7'
- 'ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70'
- 'a1118b3c9317806438c1e2f46f17e15556aae34665f739ca72b94b10b16ae422'
- '8db282f3b7f0e21ff51121c2579466c3194475a20d35c4fbd0e53f35b5639919'
- 'df8284004f25d189184aab1009df696c915212e0e439a555dbd0dbec06111e2e')
+arch=("armv7h" "i686" "x86_64")
+url="https://${pkgbase}.org/"
+license=("custom")
+depends=("enchant>=2.2" "geoclue2" "gst-plugins-base-libs" "harfbuzz-icu" "libgl" "libsecret" "libwebp" "libxslt" "libxt")
+optdepends=("gst-libav: nonfree media decoding"
+ "gst-plugins-base: free media decoding"
+ "gst-plugins-good: media decoding")
+makedepends=("gobject-introspection" "gperf" "gtk2" "gtk3" "mesa" "python2" "ruby")
+options=("!emptydirs")
+install="${pkgbase}.install"
+source=("https://${pkgbase}.org/releases/${pkgbase}-${pkgver}.tar.xz"
+ "${pkgbase}-2.4.9-abs.patch"
+ "enchant-2.x.patch"
+ "icu59.patch"
+ "pkgconfig-enchant-2.patch")
+sha256sums=("588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7"
+ "e40f1e08665e1646ebc490141678f26c9c4a2792207fdf7c05978547eae9f61c"
+ "7e37e059f071aaef93e387675de1a0c6a3dcf61ef67a3221a078caca69e22079"
+ "4e94e35b036f8a87a64e02d747d4103c0553dfe637fda372785c2b95211445ca"
+ "a1e2f24b28273746b2fbaecef42495f6314c76b16a446c22dc123e6a3afb58c8")
prepare() {
- mkdir -p build-gtk{,2} path
- ln -s -f /usr/bin/python2 path/python
+ mkdir -p "${srcdir}/build-gtk"{,2} "${srcdir}/path"
+ ln -rTsf "/usr/bin/python2" "${srcdir}/path/python"
- cd $pkgbase-$pkgver
- patch -Np1 -i ../webkitgtk-2.4.9-abs.patch
- patch -Np1 -i ../icu59.patch
- patch -Np1 -i ../enchant-2.x.patch
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ patch -Np1 -i "${srcdir}/${pkgbase}-2.4.9-abs.patch"
+ patch -Np1 -i "${srcdir}/enchant-2.x.patch"
+ patch -Np1 -i "${srcdir}/icu59.patch"
# https://www.archlinux.org/todo/enchant-221-rebuild/
- patch -Np1 -i ../pkgconfig-enchant-2.patch
+ patch -Np1 -i "${srcdir}/pkgconfig-enchant-2.patch"
- # needed as autotools-related files are patched
+ # Needed as autotools-related files are patched
autoreconf -ifv
}
_build() (
- _ver="$1"; shift
- cd build-${_ver}
+ _ver="${1}"; shift
+
+ cd "${srcdir}/build-${_ver}"
- PATH="$srcdir/path:$PATH"
+ PATH="${srcdir}/path:${PATH}"
CXXFLAGS+=" -fno-delete-null-pointer-checks"
CFLAGS+=" -fno-delete-null-pointer-checks"
@@ -57,7 +58,8 @@ _build() (
CFLAGS+=" -Wno-expansion-to-defined -Wno-class-memaccess"
CXXFLAGS+=" -Wno-expansion-to-defined -Wno-class-memaccess"
- ../$pkgbase-$pkgver/configure --prefix=/usr \
+ "${srcdir}/${pkgbase}-${pkgver}/configure" \
+ --prefix=/usr \
--libexecdir=/usr/lib/webkit${_ver} \
--enable-introspection \
--disable-webkit2 \
@@ -65,37 +67,35 @@ _build() (
"$@"
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
- sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ sed -i "s/ -shared / -Wl,-O1,--as-needed\0/g" "${srcdir}/build-${_ver}/libtool"
make all stamp-po
)
build() {
- _build gtk
- _build gtk2 --with-gtk=2.0
+ _build "gtk"
+ _build "gtk2" --with-gtk=2.0
}
package_webkitgtk() {
pkgdesc+=" for GTK+ 3"
- depends+=(gtk3)
- optdepends+=('gtk2: Netscape plugin support')
- provides=("webkitgtk3=${pkgver}" "libwebkit3=${pkgver}")
- conflicts=(webkitgtk3 libwebkit3)
- replaces=(webkitgtk3 libwebkit3)
-
- make -C build-gtk -j1 DESTDIR="$pkgdir" install
- install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
- "$pkgdir/usr/share/licenses/webkitgtk/LICENSE"
+ depends+=("gtk3")
+ optdepends+=("gtk2: Netscape plugin support")
+ provides=("${pkgbase}3=${pkgver}" "libwebkit3=${pkgver}")
+ conflicts=("${pkgbase}3" "libwebkit3")
+ replaces=("${pkgbase}3" "libwebkit3")
+
+ make -C "${srcdir}/build-gtk" DESTDIR="${pkgdir}" install
+ install -Dm644 "${srcdir}/${pkgbase}-${pkgver}/Source/WebKit/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_webkitgtk2() {
pkgdesc+=" for GTK+ 2"
- depends+=(gtk2)
+ depends+=("gtk2")
provides=("libwebkit=${pkgver}")
- conflicts=(libwebkit)
- replaces=(libwebkit)
+ conflicts=("libwebkit")
+ replaces=("libwebkit")
- make -C build-gtk2 -j1 DESTDIR="$pkgdir" install
- install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
- "$pkgdir/usr/share/licenses/webkitgtk2/LICENSE"
+ make -C "${srcdir}/build-gtk2" DESTDIR="${pkgdir}" install
+ install -Dm644 "${srcdir}/${pkgbase}-${pkgver}/Source/WebKit/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
diff --git a/enchant-2.x.patch b/enchant-2.x.patch
index 9e31a896390b..2015d879bb37 100644
--- a/enchant-2.x.patch
+++ b/enchant-2.x.patch
@@ -1,6 +1,8 @@
---- webkitgtk-2.4.9/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp.orig 2017-12-06 14:59:40.768262788 -0500
-+++ webkitgtk-2.4.9/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp 2017-12-06 15:03:10.000000000 -0500
-@@ -128,7 +128,7 @@
+diff --git a/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp b/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp
+index d2d2c6f..905ca5b 100644
+--- a/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp
++++ b/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp
+@@ -128,7 +128,7 @@ Vector<String> TextCheckerEnchant::getGuessesForWord(const String& word)
for (i = 0; i < numberOfSuggestions; i++)
guesses.append(String::fromUTF8(suggestions[i]));
diff --git a/icu59.patch b/icu59.patch
index 05cf5ebee221..68806e532707 100644
--- a/icu59.patch
+++ b/icu59.patch
@@ -1,5 +1,7 @@
---- webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h.orig 2017-02-20 17:20:08.000000000 +0100
-+++ webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h 2017-04-22 14:35:00.926530142 +0200
+diff --git a/Source/JavaScriptCore/API/JSStringRef.h b/Source/JavaScriptCore/API/JSStringRef.h
+index aded736..30a6b73 100644
+--- a/Source/JavaScriptCore/API/JSStringRef.h
++++ b/Source/JavaScriptCore/API/JSStringRef.h
@@ -32,6 +32,7 @@
#include <stdbool.h>
#endif
@@ -8,14 +10,19 @@
#ifdef __cplusplus
extern "C" {
-@@ -46,4 +47,4 @@
+@@ -43,7 +44,7 @@ extern "C" {
+ @typedef JSChar
+ @abstract A Unicode character.
+ */
- typedef unsigned short JSChar;
+ typedef char16_t JSChar;
#else
typedef wchar_t JSChar;
#endif
---- webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h.orig 2017-02-20 17:20:17.000000000 +0100
-+++ webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h 2017-04-22 14:35:56.853196170 +0200
+diff --git a/Source/WebKit2/Shared/API/c/WKString.h b/Source/WebKit2/Shared/API/c/WKString.h
+index dd5b877..2df4a3b 100644
+--- a/Source/WebKit2/Shared/API/c/WKString.h
++++ b/Source/WebKit2/Shared/API/c/WKString.h
@@ -28,6 +28,7 @@
#include <WebKit2/WKBase.h>
@@ -24,7 +31,7 @@
#ifndef __cplusplus
#include <stdbool.h>
-@@ -39,7 +40,7 @@
+@@ -39,7 +40,7 @@ extern "C" {
#if !defined(WIN32) && !defined(_WIN32) \
&& !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */
diff --git a/pkgconfig-enchant-2.patch b/pkgconfig-enchant-2.patch
index f315f661be35..865c40bfc8d0 100644
--- a/pkgconfig-enchant-2.patch
+++ b/pkgconfig-enchant-2.patch
@@ -1,6 +1,8 @@
---- webkitgtk-2.4.11/Source/autotools/FindDependencies.m4.orig 2018-01-19 23:47:23.866875328 +0800
-+++ webkitgtk-2.4.11/Source/autotools/FindDependencies.m4 2018-01-19 23:47:34.543576202 +0800
-@@ -154,7 +154,7 @@
+diff --git a/Source/autotools/FindDependencies.m4 b/Source/autotools/FindDependencies.m4
+index 60ee32d..cf1019f 100644
+--- a/Source/autotools/FindDependencies.m4
++++ b/Source/autotools/FindDependencies.m4
+@@ -154,7 +154,7 @@ AC_SUBST(PANGO_CFLAGS)
AC_SUBST(PANGO_LIBS)
if test "$enable_spellcheck" = "yes"; then
diff --git a/webkitgtk-2.4.9-abs.patch b/webkitgtk-2.4.9-abs.patch
index 9a1c5f990de6..eaae9a444bf2 100644
--- a/webkitgtk-2.4.9-abs.patch
+++ b/webkitgtk-2.4.9-abs.patch
@@ -1,7 +1,8 @@
-diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp
---- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600
-+++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700
-@@ -85,8 +85,8 @@
+diff --git a/Source/WebCore/platform/gtk/GtkClickCounter.cpp b/Source/WebCore/platform/gtk/GtkClickCounter.cpp
+index baa8917..7db658c 100644
+--- a/Source/WebCore/platform/gtk/GtkClickCounter.cpp
++++ b/Source/WebCore/platform/gtk/GtkClickCounter.cpp
+@@ -85,8 +85,8 @@ int GtkClickCounter::clickCountForGdkButtonEvent(GtkWidget* widget, GdkEventButt
guint32 eventTime = getEventTime(event);
if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
@@ -12,10 +13,11 @@ diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp w
&& (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime))
&& (buttonEvent->button == m_previousClickButton)))
m_currentClickCount++;
-diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
---- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600
-+++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700
-@@ -659,7 +659,7 @@
+diff --git a/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp b/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
+index 30d7d13..2563be6 100644
+--- a/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
++++ b/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
+@@ -659,7 +659,7 @@ String localizedMediaTimeDescription(float time)
if (!std::isfinite(time))
return String::fromUTF8(_("indefinite time"));