updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / monkeystudio2 / PKGBUILD
blob8889b47045b4d7724ec5f1868b28f89664612782
1 # Maintainer : Phil Miller <philm[at]chakra-project[dot]org
3 pkgname=monkeystudio2
4 pkgver=1.8.3.3
5 pkgrel=1
6 _svn=svn3083
7 pkgdesc="a free crossplatform Qt4 IDE" 
8 arch=('i686' 'x86_64') 
9 url="http://monkeystudio.org" 
10 depends=('qt') 
11 conflicts=('monkeystudio' 'kdemod-monkeystudio2' 'kdemod-monkeystudio2-svn' 'monkeystudio2-svn') 
12 license=('GPL') 
13 source=(http://monkeystudio.googlecode.com/files/mks_${pkgver}-${_svn}-src.tar.gz) 
15 md5sums=('e748f88770e6b783731d73aed234e597')
17 build()
20   cd $startdir/src/mks_$pkgver-$_svn
21   qmake prefix=/usr
22   make || return 1
23   
24   #create dirs
25   mkdir -p $startdir/pkg/usr/share/monkeystudio/apis/
26   mkdir -p $startdir/pkg/usr/share/monkeystudio/translations/
27   mkdir -p $startdir/pkg/usr/lib/monkeystudio/
28   mkdir -p $startdir/pkg/usr/bin/
29   mkdir -p $startdir/pkg/usr/share/applications/
30   mkdir -p $startdir/pkg/usr/share/pixmaps/
31   #install monkeystudio
32   cp -f -r $startdir/src/mks_$pkgver-$_svn/templates $startdir/pkg/usr/share/monkeystudio/
33   cp -f -r $startdir/src/mks_$pkgver-$_svn/ctags/apis $startdir/pkg/usr/share/monkeystudio/
34   chmod 644 $startdir/pkg/usr/share/monkeystudio/apis/*
35   cp -f -r $startdir/src/mks_$pkgver-$_svn/translations $startdir/pkg/usr/share/monkeystudio/
36   chmod 644 $startdir/pkg/usr/share/monkeystudio/translations/*                                                                                                                                                                                                              
37   cp -f -r $startdir/src/mks_$pkgver-$_svn/bin/plugins/* $startdir/pkg/usr/lib/monkeystudio/                                                
38   install -m 755 -p $startdir/src/mks_$pkgver-$_svn/bin/monkeystudio $startdir/pkg/usr/bin/                             
39   strip $startdir/pkg/usr/bin/monkeystudio                                                                                                                                   
40   install -m 644 -p $startdir/src/mks_$pkgver-$_svn/links/monkeystudio.desktop $startdir/pkg/usr/share/applications/    
41   install -m 644 -p $startdir/src/mks_$pkgver-$_svn/links/monkeystudio.png $startdir/pkg/usr/share/pixmaps/