PKGBUILDs/community/ewl-svn/PKGBUILD
2009-10-09 21:15:33 -05:00

51 lines
1.2 KiB
Bash
Executable file

# $Id: PKGBUILD 3331 2009-10-02 11:41:35Z rvanharen $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>
pkgname=ewl-svn
pkgver=42530
pkgrel=1
pkgdesc="widget library for e17"
arch=('i686' 'x86_64')
groups=('e17-extra-svn')
url="http://www.enlightenment.org"
license=(custom)
depends=('efreet-svn' 'edje-svn')
makedepends=('svn' 'cvs')
conflicts=('ewl')
provides=('ewl')
replaces=('ewl-cvs')
options=('!libtool')
backup=('etc/ewl/ewl.cfg')
source=()
md5sums=()
_svntrunk="http://svn.enlightenment.org/svn/e/trunk/ewl"
_svnmod="ewl"
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
./autogen.sh --prefix=/usr --sysconfdir=/etc
make || return 1
make DESTDIR=$startdir/pkg install || return 1
# install license files
install -Dm644 $srcdir/$_svnmod-build/COPYING \
$pkgdir/usr/share/licenses/$pkgname/COPYING
rm -r $startdir/src/$_svnmod-build
}