summaryrefslogtreecommitdiff
path: root/community/e-svn/PKGBUILD
blob: fef5f77233fa087b6cbe16a820f81c2e42b4bef5 (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
# $Id: PKGBUILD 72779 2012-06-22 09:56:44Z rvanharen $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>

pkgname=e-svn
pkgver=72689
pkgrel=1
pkgdesc="Enlightenment window manager DR17 (aka e17)"
arch=('i686' 'x86_64')
groups=('e17-svn')
url="http://www.enlightenment.org"
license=('BSD')
depends=('e_dbus-svn' 'edje-svn' 'efreet-svn' 'alsa-lib' 'pm-utils' 
	'pam' 'eeze-svn')  
makedepends=('svn')
conflicts=('e')
provides=('e' 'notification-daemon')
backup=('etc/enlightenment/sysactions.conf')
options=('!libtool')
source=('e-applications.menu')
sha1sums=('e08cc63cb8a188a06705b42d03e032b9fcfa7ee5')

_svntrunk="http://svn.enlightenment.org/svn/e/trunk/e"
_svnmod="e"

build() {
   cd $srcdir

msg "Connecting to $_svntrunk 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 make..."

  cp -r $_svnmod $_svnmod-build
  cd $_svnmod-build
  
  # set default suspend/hibernate commands in config file
#  patch -Np0 -i ${srcdir}/sysactions.patch

  ./autogen.sh --prefix=/usr --sysconfdir=/etc --enable-pam
  make
}
         
package() {
  cd $srcdir/$_svnmod-build

  make DESTDIR=$pkgdir install

# install license files
  if [ -e $srcdir/$_svnmod-build/COPYING ]; then
    install -Dm644 $srcdir/$_svnmod-build/COPYING \
        $pkgdir/usr/share/licenses/$pkgname/COPYING
  fi

  if [ -e $srcdir/$_svnmod-build/COPYING-PLAIN ]; then
    install -Dm644 $srcdir/$_svnmod-build/COPYING-PLAIN \
        $pkgdir/usr/share/licenses/$pkgname/COPYING-PLAIN
  fi

  # install a default applications.menu file (mostly copy from gnome-menus)
  install -Dm644 $srcdir/e-applications.menu \
	$pkgdir/etc/xdg/menus/e-applications.menu

  rm -r $srcdir/$_svnmod-build
}