Fixed crash (NULL pointer dereference)
[mirrors/libpurple-core-answerscripts.git] / archlinux / PKGBUILD
CommitLineData
fd58d3f6
H
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
5pkgname=libpurple-core-answerscripts-git
d3598bee 6pkgver=20100909
fd58d3f6
H
7pkgrel=1
8pkgdesc="Framework for hooking scripts to respond received messages for various libpurple clients such as pidgin or finch"
9arch=('x86_64' 'i686')
10url="http://github.com/harvie/libpurple-core-answerscripts"
11license=('GPL')
12depends=('libpurple')
13makedepends=('git')
14source=()
15md5sums=()
16
17_gitroot='git://github.com/Harvie/libpurple-core-answerscripts.git'
18_gitname="$pkgname"
19
20build() {
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
d3598bee 30 git clone --depth 1 $_gitroot $_gitname
fd58d3f6
H
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.142043 seconds and 4 git commands to generate.