1 # Contributor: mr_chapendi <mr.chapendi@gmail.com>
2 # Contributor: Guten Ye <ywzhaifei [at] gmail [dot] com>
4 pkgname=rbwebkitgtk-git
7 pkgdesc="Ruby/GTK2 bindings for WebKit."
9 url="https://github.com/danlucraft/rbwebkitgtk"
10 depends=('ruby' 'libwebkit' 'hspell')
15 _gitroot="git://github.com/danlucraft/rbwebkitgtk.git"
16 _gitname="rbwebkitgtk"
20 msg "Connecting to the rbwebkitgtk git repository..."
22 if [ -d "$srcdir/$_gitname" ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
34 rm -rf $_gitname-build
35 git clone $_gitname $_gitname-build
38 sed -i 's/have_library("webkit-1.0")/have_library("webkitgtk-1.0")/' extconf.rb
40 ruby extconf.rb || return 1
42 make DESTDIR=$startdir/pkg install