updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / dicorime-svn / PKGBUILD
blobb619c35e55675f22a2024f3ba8169f925e1954d5
1 # Contributor: Eric Forgeot < http://ifiction.free.fr >
2 pkgname=dicorime-svn
3 pkgrealname=dicorime
4 pkgver=109
5 pkgrel=1
6 pkgdesc="French rime dictionary"
7 arch=(i686 x86_64)
8 url="http://ignu.ungi.com/tiki-index.php?page=dictionnaire+de+rimes"
9 license=('gpl')
10 depends=('qt')
11 makedepends=('subversion')
12 #provides=()
13 #conflicts=()
14 source=()
15 md5sums=('')
17 _svntrunk=http://dev.ignu.fr/qdicorime/trunk 
18 _svnmod=dicorime
20 build() {
21         
22   cd "$srcdir"
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
30   msg "SVN checkout done (or server timeout)"
31   msg "Starting make..."
33   rm -rf "$_svnmod-build"
34   cp -r $_svnmod $_svnmod-build
35   cd $_svnmod-build
38         qmake
39         make
40         make DESTDIR=$pkgdir install || return 1
41         
42         #deploy
43         mkdir -p $pkgdir/usr/bin/
44         mkdir -p $pkgdir/usr/share/dicorime/base/
45         
46         cp $srcdir/$_svnmod-build/bin/dicorime $pkgdir/usr/bin/
47         cp -fr $srcdir/$_svnmod-build/base/*.db $pkgdir/usr/share/dicorime/base/
48         
50  #desktop icons
51         mkdir -p $pkgdir/usr/share/pixmaps
52         mkdir -p $pkgdir/usr/share/applications
54         cp $srcdir/$_svnmod-build/src/images/${pkgrealname}128.png $pkgdir/usr/share/pixmaps/$pkgrealname.png
55         
56         install -D -m644 $srcdir/../$pkgrealname.desktop $pkgdir/usr/share/applications/$pkgrealname.desktop