blob: b34f3295660137deb1c4b9f6fb3c981baba484c4 (
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
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>
pkgname=e-modules-extra-svn
pkgver=62844
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
for i in alarm calendar comp-scale cpu diskio deskshow \
empris engage eooorg everything-aspell everything-mpris \
everything-places everything-shotgun \
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 \
weather winlist-ng winselector wlan; do
cd $i
./autogen.sh --prefix=/usr
make
cd ..
done
}
package() {
cd $srcdir/$_svnmod-build
for i in alarm calendar comp-scale cpu diskio deskshow \
empris engage eooorg everything-aspell everything-mpris \
everything-places everything-shotgun \
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 \
weather 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
}
|