updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / amsn2-git / PKGBUILD
blobb841679d93b34ec54fae986659aa8bbf1bc1fcc6
1 # Contributor: Emanuele Rossi <newdna1510@yahoo.it>
2 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
3 # Contributor: Odites <odites@gmail.com>
5 pkgname=amsn2-git
6 _pkgname=amsn2
7 pkgver=20110317
8 pkgrel=1
9 pkgdesc="New Generation of AMSN"
10 url="http://github.com/drf/amsn2/tree"
11 license=('GPL')
12 arch=('i686' 'x86_64')
13 depends=('pygtk' 'libmimic' 'python2-qt' 'papyon-git' 'python-imaging')
14 makedepends=('git')
15 conflicts=()
16 replaces=('amsn2-svn')
17 provides=('amsn2')
18 source=('amsn2.run' 'amsn2.desktop')
19 install=('amsn2.install')
20 md5sums=('30e5831ebf33f3bc2a91e4589a9ced5d'
21          '3cb40821e951f1bf99c62b4eff883bef')
23 _gitroot='git://github.com/amsn/amsn2.git'
24 _gitname='amsn2'
26 build() {
27 set -e
29 cd "$srcdir"
31 msg "Connecting to github.com GIT server...."
33 if [ -d ${srcdir}/$_gitname ] ; then
34 cd $_gitname
35 git pull . master
36 git submodule update --init
37 msg "The local files are updated."
38 else
39 git clone $_gitroot $_gitname
40 cd $_gitname
41 git submodule update --init
44 msg "GIT checkout done."
46 # Copying files
47 mkdir -p $pkgdir/usr/bin
48 mkdir -p $pkgdir/usr/share/${_pkgname}
50 cp -r $srcdir/$_gitname/* $pkgdir/usr/share/${_pkgname}
52 # install startup file
53 install -Dm755 $srcdir/${_pkgname}.run $pkgdir/usr/bin/${_pkgname}
55 # install desktop file
56 install -Dm644 $srcdir/${_pkgname}.desktop $pkgdir/usr/share/applications/${_pkgname}.desktop