gtk/libwebkit-gtk2/PKGBUILD
Chaoting Liu 996934c052 libwebkit-gtk2: update to 2.18.2, sync from Arch
- use ninja build system
2017-10-31 14:46:38 +00:00

51 lines
1.6 KiB
Bash

# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/webkitgtk
# Contributor on CCR: Ben R <thebenj88 *AT* gmail *DOT* com>
pkgname=libwebkit-gtk2
pkgver=2.18.2
pkgrel=1
pkgdesc="GTK+ Web content engine library"
arch=('x86_64')
url="http://webkitgtk.org/"
license=('custom')
depends=('libxt' 'libxslt' 'geoclue' 'sqlite3' 'icu' 'gst-plugins-base-libs' 'gst-plugins-bad' 'libsecret'
'libsoup' 'enchant' 'libwebp' 'harfbuzz-icu' 'libnotify' 'hyphen' 'gtk2')
makedepends=('gperf' 'gobject-introspection' 'python2' 'gtk3' 'ruby' 'ninja' 'cmake')
provides=('libwebkit')
options=('!emptydirs')
install=libwebkit.install
source=(http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz{,.asc})
sha256sums=('b14cb3f1b5321b1dc50abcc0445a97f8e2f8813562bca7ce4d2f8069f6fec8e7'
'SKIP')
validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3')
prepare() {
mkdir build
cd webkitgtk-$pkgver
sed -i '1s/python$/&2/' Tools/gtk/generate-gtkdoc
rm -r Source/ThirdParty/gtest/
}
build() {
cd build
cmake -G Ninja -DPORT=GTK -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=/usr/lib -DLIBEXEC_INSTALL_DIR=/usr/lib/${pkgname} \
-DENABLE_GTKDOC=OFF -DUSE_SYSTEM_MALLOC=ON ../webkitgtk-$pkgver
ninja
}
package() {
cd build
DESTDIR="$pkgdir" ninja install
cd ../webkitgtk-$pkgver/Source
while IFS= read -d $'\0' -r _f; do
echo "### $_f ###"; cat "$_f"; echo
done < <(find . -name 'COPYING*' -or -name 'LICENSE*' -print0) \
| install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}