updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sacks-git / PKGBUILD
blob87330f4228eba48913700b24d1f2baaa8db2cf3b
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=sacks
4 pkgname=$_pkg-git
5 pkgver=20110531
6 pkgrel=1
7 pkgdesc="An integrated system to allow Digital Gathering (Adunanza Digitale).Adunanza Digitale is an assembly available on-line."
8 arch=('any')
9 url="http://riunionidigitali.net/"
10 license=('GPL')
11 depends=('python2-pyqt' 'vlc' 'python-dnspython' 'python2-pjproject' 'pyvnc')
12 makedepends=('git')
13 provides=("$_pkg")
14 conflicts=("$_pkg")
15 install=("$pkgname.install")
16 source=("$pkgname.desktop")
17 md5sums=('b1fd005d18663b8a1f2230ce3de6c146')
19 _gitroot="git://github.com/M0Rf30/sacks.git"
20 _gitname="$_pkg"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   #
41   # BUILD HERE
42   #
44   sed -i "s|\(bin/python\).*|\12|" `grep -rl bin/python .`
47 package() {
48   cd "$srcdir/$_gitname-build"
50   # data
51   install -d "$pkgdir"/usr/{share/$_pkg,bin}
52   cp -a * "$pkgdir/usr/share/$_pkg"
54   # desktop file and pixmaps
55   install -Dm644 "$srcdir/$pkgname.desktop" \
56                  "$pkgdir/usr/share/applications/$_pkg.desktop"
57   install -Dm644 sacksIcon.png "$pkgdir/usr/share/pixmaps/$_pkg.png"
59   # license
60   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkg/LICENSE"
62   # bin
63   cat << EOF >> "$pkgdir/usr/bin/$_pkg"
64 #!/bin/bash
65 cd /usr/share/$_pkg && python2 $_pkg.py
66 EOF
68   chmod +x "$pkgdir/usr/bin/$_pkg"
69