updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / animeshell-svn / PKGBUILD
blob0919100176d87a1024e5e659d86362ea83ba26b3
1 # Contributor: Shaika-Dzari <shaikadzari at gmail dot com>
2 pkgname=animeshell-svn
3 pkgver=51
4 pkgrel=1
5 pkgdesc="Collection manager for your animes and mangas"
6 arch=(i686)
7 url="http://code.google.com/p/animeshell/"
8 license=('GPL')
9 depends=('qt')
10 makedepends=('subversion')
11 provides=(animeshell)
12 conflicts=(animeshell)
13 source=()
14 md5sums=()
16 _svntrunk=http://animeshell.googlecode.com/svn/trunk/Animeshell-1.0
17 _svnmod=animeshell-read-only
19 build() {
20   export QMAKESPEC=linux-g++
22   cd ${startdir}/src
23   msg "Connecting to $_svnmod SVN server...."
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up -r $pkgver)
27   else
28     svn co $_svntrunk $_svnmod -r $pkgver
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   # Clean up Makefile and bin
38   rm Makefile
39   rm Makefile.Debug
40   rm Makefile.Release
41   rm bin/Animeshell
43   qmake -unix CONFIG+=debug_and_release -o Makefile Animeshell.pro
44   make || return 1
46   # Executable
47   install -Dm755 bin/Animeshell $startdir/pkg/usr/bin/animeshell
48   
49   # .desktop file
50   install -Dm644 $startdir/Animeshell.desktop $startdir/pkg/usr/share/applications/Animeshell.desktop
52   # Icon
53   install -Dm644 ui/resources/animeshell-icon-10.png $startdir/pkg/usr/share/pixmaps/animeshell.png