# Description: Webkit Portu, Fltk 1.3'e
# URL: https://github.com/clbr/webkitfltk
# Packager: milisarge
# Depends on: zlib libpng libjpeg-turbo libxml2 sqlite freetype xorg-fontconfig xorg-libxcursor cairo openssl curl icu harfbuzz fltk1 git ruby

name=webkitfltk
version=0.5.1
release=1

source=(https://github.com/clbr/webkitfltk/archive/v0.5.1.tar.gz
		https://github.com/clbr/webkitfltk/commit/6db7be57eb6f633d63fb90397adb21c6247ab410.patch
		https://github.com/clbr/webkitfltk/commit/83626b77fc7d8fae005fd4575dd85dbb0f243081.patch)

build() {
	#git clone https://github.com/clbr/webkitfltk.git
	cd "${name}-${version}"
	patch -p1 -i $SRC/6db7be57eb6f633d63fb90397adb21c6247ab410.patch
    patch -p1 -i $SRC/83626b77fc7d8fae005fd4575dd85dbb0f243081.patch
	make -j1 -C Source/bmalloc/bmalloc
	make -j1 -C Source/WTF/wtf
	make -j1 -C Source/JavaScriptCore gen
	make -j1 -C Source/JavaScriptCore
	make -j1 -C Source/WebCore
	make -j1 -C Source/WebKit/fltk
	make -C Source/WebKit/fltk install DESTDIR="${PKG}"
}
