blob: 4986c0b91cebed68b623abc98d1177b1cd575a12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Doug Newgard <scimmia22 at outlook dot com>
# Contributor: twa022 <twa022 at gmail dot com>
pkgname=ewebkit-svn
pkgver=138558
pkgrel=1
pkgdesc="WebKit ported to the Enlightenment Foundation Libraries"
arch=('i686' 'x86_64')
url="http://trac.webkit.org/wiki/EFLWebKit"
license=('LGPL2' 'LGPL2.1' 'BSD')
depends=('atk' 'elementary' 'enchant' 'sqlite' 'e_dbus' 'libtiff'
'gstreamer0.10-base-plugins' 'libsoup' 'libxslt' 'libxt')
makedepends=('cmake' 'subversion' 'perl' 'python2' 'ruby' 'gperf')
_svntrunk=https://svn.webkit.org/repository/webkit/trunk
_svnmod=Webkit
build() {
cd "$srcdir"
msg "Connecting to SVN server...."
if [[ -d "$_svnmod/.svn" ]]; then
(cd "$_svnmod" && svn up -r "$pkgver")
else
svn co "$_svntrunk" --depth immediates --config-dir ./ -r "$pkgver" "$_svnmod"
cd "$_svnmod"
svn up --set-depth infinity Source -r "$pkgver"
svn up --set-depth infinity Tools -r "$pkgver"
svn up --set-depth infinity WebKit.xcworkspace -r "$pkgver"
fi
msg "SVN checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_svnmod-build"
svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"
cmake . -DPORT=Efl \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DSHARED_CORE=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_WEBKIT=ON \
-DENABLE_WEBKIT2=OFF
make
}
package() {
cd "$srcdir/$_svnmod-build"
make DESTDIR="$pkgdir" install
# install license files
install -Dm644 "$srcdir/$_svnmod-build/Source/WebCore/LICENSE-APPLE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE-APPLE"
install -Dm644 "$srcdir/$_svnmod-build/Source/WebCore/LICENSE-LGPL-2" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE-LGPL-2"
rm -r "$srcdir/$_svnmod-build"
}
|