summaryrefslogtreecommitdiff
path: root/community/e-modules-extra-svn/PKGBUILD
blob: a2eee522ce6871fddc6f59ad49a0790142b56ffe (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
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>

pkgname=e-modules-extra-svn
pkgver=76479
pkgrel=1
pkgdesc="Extra gadgets for e17"
arch=('i686' 'x86_64' 'mips64el')
groups=('e17-extra-svn')
url="http://www.enlightenment.org"
license=('BSD')
depends=('e-svn' 'libxkbfile' 'libmpd' 'efreet-svn' 'e_dbus-svn' 'emprint-svn' 'xorg-setxkbmap')
makedepends=('subversion')
conflicts=('e-modules-extra')
provides=('e-modules-extra')
options=('!libtool')
source=()
md5sums=()

_svntrunk="http://svn.enlightenment.org/svn/e/trunk/E-MODULES-EXTRA"
_svnmod="E-MODULES-EXTRA"

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

  for i in alarm comp-scale cpu diskio deskshow eektool \
	eenvader.fractal empris engage everything-aspell \
	everything-mpris everything-pidgin everything-places \
	everything-shotgun everything-tracker everything-wallpaper \
 	everything-websearch execwatch flame iiirk itask mail mem \
	moon mpdule net photo places rain slideshow snow taskbar \
	winlist-ng winselector; do

  cd $i
  ./autogen.sh --prefix=/usr
  make
  cd ..
done
} 

package() {
  cd $srcdir/$_svnmod-build

  for i in alarm comp-scale cpu diskio deskshow eektool \
        eenvader.fractal empris engage everything-aspell \
        everything-mpris everything-pidgin everything-places \
        everything-shotgun everything-tracker everything-wallpaper \
        everything-websearch execwatch flame iiirk itask mail mem \
        moon mpdule net photo places rain slideshow snow taskbar \
        winlist-ng winselector; do

  cd $i
  make DESTDIR=$pkgdir install

# install license files
  if [ -e $srcdir/$_svnmod-build/$i/COPYING ]; then
    install -Dm644 $srcdir/$_svnmod-build/$i/COPYING \
        $pkgdir/usr/share/licenses/$pkgname/$i/COPYING
  fi
 
  if [ -e $srcdir/$_svnmod-build/$i/COPYING-PLAIN ]; then
    install -Dm644 $srcdir/$_svnmod-build/$i/COPYING-PLAIN \
        $pkgdir/usr/share/licenses/$pkgname/$i/COPYING-PLAIN
  fi
 
  cd ..
 done
 rm -r $srcdir/$_svnmod-build

}