gtk/libwebkit-gtk2/PKGBUILD

50 lines
1.4 KiB
Bash
Raw Normal View History

2013-04-28 04:27:26 +08:00
# CCR: Ben R <thebenj88 *AT* gmail *DOT* com>
pkgname=libwebkit-gtk2
pkgver=1.10.2
pkgrel=1
2013-04-28 04:27:26 +08:00
pkgdesc="An opensource web content engine"
2013-04-29 04:40:53 +08:00
arch=('x86_64')
2013-04-28 04:27:26 +08:00
url="http://webkitgtk.org/"
license=('custom')
depends=('libxt' 'libxslt' 'sqlite3' 'icu' 'gstreamer0.10-base' 'libsoup' 'enchant')
2013-04-29 04:40:53 +08:00
makedepends=('gperf' 'gobject-introspection' 'python2' 'gtk2' 'ruby' 'filesystem-extra')
2013-04-28 04:27:26 +08:00
provides=('libwebkit')
options=('!libtool' '!emptydirs')
install=libwebkit.install
source=(http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz)
sha256sums=('19234f8e4edfaefe91ed06471a2aa8c71d26dd55d33787eede1dcfc9a3a96d9c')
2013-04-28 04:27:26 +08:00
build() {
cd "${srcdir}/webkitgtk-${pkgver}"
# Suppress a *lot* of gcc 4.8 warnings
CPPFLAGS+=" -Wno-unused-local-typedefs"
# fix a bug, where documentation is build even when gtk-doc is not installed, which fails
# http://www.linuxfromscratch.org/blfs/view/svn/x/webkitgtk.html
sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in
PYTHON=/usr/bin/python2 ./configure --prefix=/extra/usr \
2013-04-28 04:27:26 +08:00
--enable-introspection \
--disable-geolocation \
2013-04-28 04:27:26 +08:00
--with-font-backend=freetype --disable-gtk-doc \
--with-unicode-backend=icu \
--with-gtk=2.0 \
--disable-webkit2 \
2013-04-28 04:27:26 +08:00
--enable-spellcheck "$@"
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2013-04-28 04:27:26 +08:00
make all stamp-po
}
package() {
cd "$srcdir/webkitgtk-$pkgver"
make -j1 DESTDIR="${pkgdir}" install
2013-04-28 04:27:26 +08:00
}