diff options
Diffstat (limited to 'community/e-modules-extra-svn/PKGBUILD')
-rwxr-xr-x | community/e-modules-extra-svn/PKGBUILD | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/community/e-modules-extra-svn/PKGBUILD b/community/e-modules-extra-svn/PKGBUILD new file mode 100755 index 000000000..3ecdfe102 --- /dev/null +++ b/community/e-modules-extra-svn/PKGBUILD @@ -0,0 +1,88 @@ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: Ronald van Haren <ronald.archlinux.org> + +pkgname=e-modules-extra-svn +pkgver=57516 +pkgrel=1 +pkgdesc="Extra gadgets for e17" +arch=('i686' 'x86_64') +groups=('e17-extra-svn') +url="http://www.enlightenment.org" +license=('BSD') +depends=('e-svn' 'libxkbfile' 'emprint-svn' 'libmpd' 'hal' '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 +for i in alarm calendar cpu deskshow diskio efm_path efm_pathbar efm_nav\ + empris eooorg everything-mpris everything-pidgin everything-places everything-tracker \ + everything-wallpaper everything-websearch \ + execwatch flame forecasts iiirk itask itask-ng 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 cpu deskshow diskio efm_path efm_pathbar efm_nav\ + empris eooorg everything-mpris everything-pidgin everything-places everything-tracker \ + everything-wallpaper everything-websearch \ + execwatch flame forecasts iiirk itask itask-ng 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 + +} |