updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / sacks / PKGBUILD
blob3dcd795147308f431d660656233aebb6c9b7a370
1 # Maintainer: M0Rf30 <morf3089@gmail.com>
4 pkgname=sacks
5 pkgver=20120114
6 pkgrel=1
7 pkgdesc="An integrated system to allow Digital Gathering (Adunanza Digitale).Adunanza Digitale is an assembly available on-line." 
8 arch=('i686' 'x86_64') 
9 url="http://adunanzadigitale.org" 
10 depends=('libvncserver' 'python2' 'python2-qt' 'vlc' 'python-dnspython' 'openssl' 'python2-pjproject' 'pyvnc' 'xmpppy') 
11 makedepends=('git')
12 conflicts=() 
13 license=('GPL3') 
14 source=(sacks-bin
15         sacks.desktop ) 
17 md5sums=('4041f5db9c0dd29c8ebbbe6327d4e4c5'
18          '65b46bae1c502b0cc8e72bc283a2fcc0')
19 _gitroot="git://github.com/M0Rf30/sacks.git"
20 _gitname="sacks"
21 _buildir=${_gitname}-build
23 build() {
24         cd ${srcdir}
26         msg 'Connecting to GIT server...'
28         if [ -d ${_gitname} ]; then
29                 cd ${_gitname} && git pull origin
30                 cd ..
31         else
32                 git clone ${_gitroot}
33         fi
35         msg 'GIT checkout done or server timeout.'
37         if [ -d ${_buildir} ]; then
38                 msg 'Cleaning previous build...'
39                 rm -rf ${_buildir}
40         fi
42         git clone ${_gitname} ${_buildir}
43         cd ${_buildir}
44     msg 'Arrange sacks folders...'
45     mkdir -p $pkgdir/usr/share/sacks
46     cp -r * $pkgdir/usr/share/sacks
47     mkdir -p $pkgdir/usr/share/applications/
48     cp $srcdir/sacks.desktop $pkgdir/usr/share/applications
49     mkdir -p $pkgdir/usr/share/icons/hicolor/32x32/apps/   
50     mv $pkgdir/usr/share/sacks/sacksIcon.png $pkgdir/usr/share/icons/hicolor/32x32/apps/sacks.png
51     mkdir -p $pkgdir/usr/share/licenses/sacks/
52     mv $pkgdir/usr/share/sacks/COPYING $pkgdir/usr/share/licenses/sacks/
53     ln $pkgdir/usr/share/licenses/sacks/COPYING   $pkgdir/usr/share/sacks/
54     msg 'Create execution script...'  
55     mkdir -p $pkgdir/usr/bin
56     cp $srcdir/sacks-bin $pkgdir/usr/bin/sacks
57     msg 'Create Bytecode...'
58     cd $pkgdir/usr/share/sacks && python2 -m compileall .