summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/kdewebkit/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/kdewebkit/APKBUILD b/user/kdewebkit/APKBUILD
new file mode 100644
index 000000000..33498606c
--- /dev/null
+++ b/user/kdewebkit/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kdewebkit
+pkgver=5.51.0
+pkgrel=0
+pkgdesc="KDE integration with WebKit"
+url="https://www.kde.org/"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+depends_dev="qt5-qtwebkit-dev"
+makedepends="$depends_dev cmake extra-cmake-modules kconfig-dev kcoreaddons-dev
+ kio-dev kparts-dev kwallet-dev"
+subpackages="$pkgname-dev"
+source="https://download.kde.org/stable/frameworks/5.51/kdewebkit-$pkgver.tar.xz"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="166637e3e30b94822e9a10cde59012f04505f564e5a6d69b81dffd9b7d0584f70891eab640dcac3d5ae56bba2e96b8cb2bac5c31b42ac95996a37660e55b90ee kdewebkit-5.51.0.tar.xz"