summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b80a1deee2607168c595dd0b28dabd15719cc23 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Maintainer: Doug Newgard <scimmia22 at outlook dot com>

pkgname=efl-svn
pkgver=83565
pkgrel=1
pkgdesc="Enlightenment Foundation Libraries - Ecore, EDBus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas"
arch=('i686' 'x86_64')
url="http://www.enlightenment.org"
license=('BSD' 'LGPL2.1' 'GPL2' 'custom')
depends=('bullet' 'curl' 'dbus' 'udev' 'lua' 'shared-mime-info'
         'fribidi' 'harfbuzz' 'fontconfig'
         'mesa' 'giflib' 'libtiff' 'libpng' 'libpulse' 'libexif'
         'libxcomposite' 'libxcursor' 'libxinerama' 'libxss' 'libxrandr' 'libxp'
         'gstreamer0.10-base-plugins')
makedepends=('subversion')
optdepends=('python2: compare Eina benchmarks'
            'evas_generic_loaders-svn: More video/graphic/icon loaders for Evas'
            'gstreamer0.10-good-plugins: Access more types of video in Emotion'
            'gstreamer0.10-bad-plugins: Access more types of video in Emotion'
            'gstreamer0.10-ugly-plugins: Access more types of video in Emotion'
            'gstreamer0.10-ffmpeg: Access video with ffmpeg in Emotion')
conflicts=('ecore' 'ecore-svn' 'edbus' 'edbus-svn' 'edje' 'edje-svn'
           'eet' 'eet-svn' 'eeze' 'eeze-svn' 'efreet' 'efreet-svn'
           'eina' 'eina-svn' 'eio' 'eio-svn' 'embryo' 'embryo-svn'
           'emotion' 'emotion-svn' 'ephysics' 'ephysics-svn'
           'ethumb' 'ethumb-svn' 'evas' 'evas-svn')
provides=('ecore' 'ecore-svn' 'edbus' 'edbus-svn' 'edje' 'edje-svn'
          'eet' 'eet-svn' 'eeze' 'eeze-svn' 'efreet' 'efreet-svn'
          'eina' 'eina-svn' 'eio' 'eio-svn' 'embryo' 'embryo-svn'
          'emotion' 'emotion-svn' 'ephysics' 'ephysics-svn'
          'ethumb' 'ethumb-svn' 'evas' 'evas-svn')
install=efl.install
options=('!libtool' '!emptydirs' '!strip')
         
_svntrunk="http://svn.enlightenment.org/svn/e/trunk/efl"
_svnmod="efl"

build() {
  cd "$srcdir"

  msg "Connecting to SVN server...."

  if [[ -d "$_svnmod/.svn" ]]; then
    (cd "$_svnmod" && svn up -r "$pkgver")
  else
    svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  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"

  sed -i 's:#!/usr/bin/env python:#!/usr/bin/python2:g' \
    "$srcdir/$_svnmod-build/src/scripts/eina/eina-bench-cmp"

  ./autogen.sh --prefix=/usr \
	--with-x11=xlib \
	--with-opengl=full \
	--with-tests=none \
	--enable-harfbuzz \
	--enable-fb \
	--disable-tslib

  make
}

package() {
  cd "$srcdir/$_svnmod-build"
  make -j1 DESTDIR="$pkgdir" install

# install license files
  install -Dm644 "$srcdir/$_svnmod-build/COPYING" \
        "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  install -Dm644 "$srcdir/$_svnmod-build/AUTHORS" \
        "$pkgdir/usr/share/licenses/$pkgname/AUTHORS"
  install -Dm644 "$srcdir/$_svnmod-build/licenses/COPYING.BSD" \
        "$pkgdir/usr/share/licenses/$pkgname/COPYING.BSD"
  install -Dm644 "$srcdir/$_svnmod-build/licenses/COPYING.SMALL" \
        "$pkgdir/usr/share/licenses/$pkgname/COPYING.SMALL"

  rm -r "$srcdir/$_svnmod-build"
}