blob: fd6eaecc181e97530c1cb57bcefeb2c4fc646854 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Licia Todd <tigrmesh at aol dot com>
# Contributor: Tim Zebulla <amon at faumrahrer dot de>
pkgname=weechat-git
pkgver=20090613
pkgrel=1
install=('weechatgit.install')
pkgdesc="Fast, light & extensible IRC client (curses UI)"
arch=('i686' 'x86_64')
url="http://weechat.flashtux.org"
depends=('perl' 'python>=2.5' 'gnutls' 'lua' 'aspell' 'iksemel' 'ruby<1.9')
makedepends=('git' 'cmake')
optdepends=('tcl: tcl scripting support')
options=(!strip)
license=('GPL3')
source=()
md5sums=()
_gitroot="git://git.sv.gnu.org/weechat.git"
_gitrepo="weechat"
build(){
cd $startdir/src
msg ""
msg "Connecting to GIT server..."
if [ ! -d $startdir/src/$_gitrepo ]; then
msg "First time connected - cloning repo, this may take a while..."
git clone $_gitroot || return 1
else
cd $startdir/src/$_gitrepo
msg "Updating files..."
git pull || return 1
fi
msg "Starting build process..."
cp -r $startdir/src/$_gitrepo $startdir/src/$_gitrepo-build && cd $startdir/src/$_gitrepo-build
# Installs to /usr/local so people can run both stable and devel versions
# at the same time. Otherwise, change it to /usr
cmake -DCMAKE_BUILD_TYPE=Debug -DDISABLE_DOC=ON -DPREFIX=/usr || return 1
make DESTDIR=${startdir}/pkg install || return 1
rm -r $startdir/src/$_gitrepo-build
}
# note - to disable an option, use -DDISABLE_JABBER=ON
# this should change soon, and will be -DENABLE_JABBER=OFF
# also, you can see the configure options with ccmake, then just -DOPTIONHERE=ON/OFF
|