updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / editor-on-fire-svn / PKGBUILD
blob7dc546a147656b56af2e4288ca782a08208a34dd
1 # Maintainer: Alucryd <alucryd at gmail dot com>
2 pkgname=editor-on-fire-svn
3 pkgver=842
4 pkgrel=1
5 pkgdesc="A song editor for Frets On Fire"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/editor-on-fire/"
8 license=('custom')
9 depends=('allegro4' 'libogg' 'libvorbis' 'libpng' 'zlib')
10 optdepends=('lame: MP3 decoding'
11 'vorbis-tools: OGG encoding')
12 source=('eof' 'eof.desktop')
13 md5sums=('1113362be320b2a5de64f85426aa5244' 'e755de376de04c36975c047b63061349')
15 _svntrunk=http://editor-on-fire.googlecode.com/svn/trunk/
16 _svnmod=editor-on-fire
18 build() {
19     cd "$srcdir"
20     msg "Connecting to SVN server...."
21     if [[ -d "$_svnmod/.svn" ]]; then
22         (cd "$_svnmod" && svn up -r "$pkgver")
23     else
24         svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
25     fi
26     msg "SVN checkout done or server timeout"
27     cd "$srcdir/$_svnmod"
28     make
31 package() {
32     cd "$srcdir/$_svnmod"
33     mkdir "$pkgdir/opt"
34     install -D -m755 "$srcdir/eof" "$pkgdir/usr/bin/eof"
35     install -D -m644 "$srcdir/eof.desktop" "$pkgdir/usr/share/applications/eof.desktop"
36     install -D -m644 license.txt "$pkgdir/usr/share/licenses/editor-on-fire-svn/license.txt"
37     mv bin "$pkgdir/opt/editor-on-fire"
38     install -d -m777 "$pkgdir/opt/editor-on-fire"