updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pesterchum-git / PKGBUILD
blob4751da84cf8b932c947e55f10018eedbdad4e14f
1 # Maintainer: kiooeht <kiooeht@gmail.com>
2 pkgname=pesterchum-git
3 pkgver=20111205
4 pkgrel=1
5 pkgdesc="Instant messaging client copying the look and feel of clients from Andrew Hussie's webcomic Homestuck"
6 arch=(any)
7 url="https://github.com/kiooeht/pesterchum"
8 license=('GPL3')
9 groups=()
10 depends=('python2>=2.6' 'python2-pyqt>=4.6' 'python-pygame')
11 makedepends=('git')
12 optdepends=('python-notify: libnotify notication option'
13 'twmn: extra notification option')
14 provides=('pesterchum')
15 conflicts=('pesterchum')
16 replaces=()
17 backup=()
18 options=(emptydirs)
19 install=
20 changelog=
21 source=()
22 noextract=()
23 md5sums=() #generate with 'makepkg -g'
25 _gitroot=git://github.com/kiooeht/pesterchum.git
26 _gitname=pesterchum
28 build() {
29   cd "$srcdir"
30   msg "Connecting to GIT server...."
32   if [[ -d "$_gitname" ]]; then
33     cd "$_gitname" && git pull origin
34     msg "The local files are updated."
35   else
36     git clone --depth=1 "$_gitroot" "$_gitname"
37   fi
39   msg "GIT checkout done or server timeout"
40   msg "Starting build..."
42   rm -rf "$srcdir/$_gitname-build"
43   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
44   cd $srcdir/$_gitname-build
46   make
49 package() {
50   cd "$srcdir/$_gitname-build"
52   make PYTHON2_CMD=/usr/bin/python2 PREFIX=/usr DESTDIR="${pkgdir}" install
55 # vim:set ts=2 sw=2 et: