aboutsummaryrefslogtreecommitdiffstats
path: root/community/webkit2gtk
diff options
context:
space:
mode:
Diffstat (limited to 'community/webkit2gtk')
-rw-r--r--community/webkit2gtk/APKBUILD24
1 files changed, 6 insertions, 18 deletions
diff --git a/community/webkit2gtk/APKBUILD b/community/webkit2gtk/APKBUILD
index 4593140059..a4a2ff02e6 100644
--- a/community/webkit2gtk/APKBUILD
+++ b/community/webkit2gtk/APKBUILD
@@ -7,8 +7,6 @@ pkgdesc="portable web rendering engine WebKit for GTK+"
url="http://webkitgtk.org/"
arch="x86 x86_64"
license="LGPL2+ BSD"
-depends=""
-depends_dev=""
makedepends="$depends_dev
bison
cmake
@@ -38,32 +36,22 @@ makedepends="$depends_dev
ruby
sqlite-dev
"
-install=
replaces="webkit"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz
musl-fixes.patch
"
-_srcdir="${srcdir}/webkitgtk-${pkgver}"
-_builddir="${srcdir}/build"
+builddir="${srcdir}/webkitgtk-${pkgver}"
prepare() {
- cd "$_srcdir"
- for i in $source; do
- case "$i" in
- *.patch)
- msg "Applying $i"
- patch -p1 -i "$srcdir"/$i || return 1
- ;;
- esac
- done
+ default_prepare || return 1
rm -r Source/ThirdParty/gtest/ || return 1
rm -r Source/ThirdParty/qunit/ || return 1
}
build() {
- mkdir "$_builddir"
- cd "$_builddir"
+ cd "$builddir"
+ mkdir build && cd build
cmake -DPORT=GTK \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
@@ -73,12 +61,12 @@ build() {
-DENABLE_GTKDOC=ON \
-DENABLE_GEOLOCATION=OFF \
-DENABLE_PLUGIN_PROCESS_GTK2=OFF \
- "$_srcdir" || return 1
+ .. || return 1
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"/build
make DESTDIR="$pkgdir" install || return 1
# needed for JIT
paxmark -m "$pkgdir"/usr/lib/webkit2gtk-4.0/WebKitWebProcess || return 1