updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / slrn-git / PKGBUILD
blob3a524d8e52533d69781acbd7976a52e81d8feeda
1 # Maintainer: baskerville <nihilhill@gmail.com>
3 pkgname=slrn-git
4 pkgver=20111206
5 pkgrel=1
6 pkgdesc="An open source text-based news client"
7 arch=('i686' 'x86_64')
8 url="http://www.slrn.org/"
9 license=('GPL')
10 depends=('slang' 'uudeview')
11 makedepends=('git')
12 provides=('slrn')
13 conflicts=('slrn')
14 backup=(etc/slrnrc)
16 _gitroot='git://git.jedsoft.org/git/slrn.git'
17 _gitname='slrn'
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   ./configure --prefix=/usr --sysconfdir=/etc \
38       --enable-setgid-code \
39       --with-slrnpull --with-ssl --with-uu \
40       --with-uulib=/usr/lib/uudeview \
41       --with-uuinc=/usr/include/uudeview \
42       --enable-spoilers
43   make
46 package() {
47   cd "$srcdir/$_gitname-build"
48   make DESTDIR="$pkgdir" install
49   install -Dm 755 contrib/cleanscore $pkgdir/usr/bin/cleanscore
50   install -Dm 644 doc/slrn.rc $pkgdir/etc/slrnrc