aboutsummaryrefslogblamecommitdiffstats
path: root/main/webkit/APKBUILD
blob: e42c10abd81a3049d468054e035eb00caff008e2 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            
        

                                                       
          
                  
        
             
                                                                      
                                                            

                                                                            
                                                                         
                                                            


                                      
                                                    
         
 
                                                












                                                             

         
                       


                                         

                                           
                        


           
                       




                                            
                  




                                                                        
                                                               
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=webkit
pkgver=1.3.6
pkgrel=1
pkgdesc="portable web rendering engine WebKit for GTK+"
url="http://webkitgtk.org/"
arch="all"
license="LGPL BSD"
depends=
makedepends="
	libsoup-dev pango-dev gtk+-dev jpeg-dev libpng-dev libxml2-dev
	gperf pkgconfig bison flex icu-dev cairo-dev atk-dev
	gnutls-dev sqlite-dev libxslt-dev libxt-dev libiconv-dev gettext-dev
	zlib-dev libgcrypt-dev libgpg-error-dev expat-dev e2fsprogs-dev
	enchant-dev libxi-dev libxrandr-dev libxcursor-dev libxdamage-dev
	libxcomposite-dev gstreamer-dev gst-plugins-base-dev
	"
install=
subpackages="$pkgname-dev gtklauncher"
source="http://webkitgtk.org/$pkgname-$pkgver.tar.gz
	"

depends_dev="gtk+-dev libsoup-dev gstreamer-dev"
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case "$i" in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

gtklauncher() {
	pkgdesc="Application to test WebKit"
	depends=""
	install=
	install -Dm755 "$srcdir"/$pkgname-$pkgver/Programs/GtkLauncher \
		"$subpkgdir"/usr/bin/GtkLauncher
}

md5sums="ad409dfc737399c1d24dba9038c9eaf2  webkit-1.3.6.tar.gz"