blob: 79d375f352bf1a72b9e0b45fd311174af5fa6207 (
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
86
87
88
89
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>
pkgname=e-modules-extra-svn
pkgver=59230
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' 'emprint-svn' 'libmpd' 'efreet-svn' 'e_dbus-svn')
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
# fix build issue
sed -i 's|efreet/Efreet.h|efreet-0/Efreet.h|' winlist-ng/src/e_mod_main.h || return 1
# weather fails to compile on September 7th 2010
# xkbswitch fails to compile on May 4th 2011
for i in alarm calendar comp-scale cpu deskshow diskio efm_path efm_pathbar efm_nav\
empris engage eooorg everything-mpris everything-pidgin everything-places \
everything-tracker everything-wallpaper everything-websearch \
execwatch flame forecasts iiirk itask language mail mem \
moon mpdule net news notification penguins photo places quickaccess \
rain screenshot slideshow snow taskbar tclock tiling uptime \
winlist-ng winselector wlan; do
cd $i
./autogen.sh --prefix=/usr
make
cd ..
done
}
package() {
cd $srcdir/$_svnmod-build
# weather fails to compile on September 7th 2010
for i in alarm calendar comp-scale cpu deskshow diskio efm_path efm_pathbar efm_nav\
empris engage eooorg everything-mpris everything-pidgin everything-places \
everything-tracker everything-wallpaper everything-websearch \
execwatch flame forecasts iiirk itask language mail mem \
moon mpdule net news notification penguins photo places quickaccess \
rain screenshot slideshow snow taskbar tclock tiling uptime \
winlist-ng winselector wlan; 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
}
|