updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / eskiss-svn / PKGBUILD
blob093ad6d2008bf8bc6923208b45c67e60ee356b69
1 pkgname=eskiss-svn
2 pkgver=49684
3 pkgrel=1
4 pkgdesc="A small game written using efl. It's a physics game like Crayon Physics or Numpty Physics"
5 arch=('i686' 'x86_64')
6 groups=('e17-extra-svn')
7 url="http://www.enlightenment.org"
8 license=('BSD')
9 depends=('edje-svn' 'chipmunk' 'evas-svn' 'embryo-svn' 'ecore-svn' 'eet-svn')
10 makedepends=('svn')
11 conflicts=('eskiss')
12 provides=('eskiss')
13 replaces=('eskiss-cvs')
14 options=('!libtool')
15 source=()
16 md5sums=()
18 _svntrunk="http://svn.enlightenment.org/svn/e/trunk/MISC/eskiss"
19 _svnmod="eskiss"
21 build() {
22    cd $srcdir
24   msg "Connecting to $_svntrunk SVN server...."
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up -r $pkgver)
27   else
28     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29   fi
31   msg "SVN checkout done or server timeout"
32   msg "Starting make..."
34   cp -r $_svnmod $_svnmod-build
35   cd $_svnmod-build
37   ./waf configure --prefix=/usr || return 1
38   ./waf || return 1
39   ./waf install --destdir=$pkgdir || return 1
41 # install license files
42   install -Dm644 $srcdir/$_svnmod-build/COPYING \
43     $pkgdir/usr/share/licenses/$pkgname/COPYING
45   install -Dm644 $srcdir/$_svnmod-build/COPYING-PLAIN \
46     $pkgdir/usr/share/licenses/$pkgname/COPYING-PLAIN
48 install -d $pkgdir/usr/share/{applications,icons}
49 cp $pkgdir/usr/share/eskiss/brushes/ball_01.png $pkgdir/usr/share/icons/eskiss.png
50 echo "[Desktop Entry]
51 Name=Eskiss
52 Comment=A small game written using efl. It's a physics game like Crayon Physics or Numpty Physics
53 Exec=eskiss -F=1
54 Icon=/usr/share/icons/eskiss.png
55 Terminal=false
56 Type=Application
57 Categories=Game;
59 " > $pkgdir/usr/share/applications/eskiss.desktop
61   rm -r $srcdir/$_svnmod-build