da60c409692a5390b7b83463431d5428ef4591fd
[mirrors/libpurple-core-answerscripts.git] / archlinux / PKGBUILD
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
3 # You can also contact me on http://blog.harvie.cz/
4
5 pkgname=libpurple-core-answerscripts-git
6 pkgver=20100909
7 pkgrel=1
8 pkgdesc="Framework for hooking scripts to respond received messages for various libpurple clients such as pidgin or finch"
9 arch=('x86_64' 'i686')
10 url="http://github.com/harvie/libpurple-core-answerscripts"
11 license=('GPL')
12 depends=('libpurple')
13 makedepends=('git')
14 source=()
15 md5sums=()
16
17 _gitroot='git://github.com/Harvie/libpurple-core-answerscripts.git'
18 _gitname="$pkgname"
19
20 build() {
21 cd ${srcdir}/
22
23 cd "$srcdir"
24 msg "Connecting to GIT server...."
25
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
29 else
30 git clone --depth 1 $_gitroot $_gitname
31 fi
32
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
35
36 rm -rf "$srcdir/$_gitname-build"
37 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
39
40 #
41 # BUILD HERE
42 #
43
44 make || return 1
45 make install PREFIX="$pkgdir/usr" || return 1
46 }
This page took 0.230855 seconds and 4 git commands to generate.