updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / slrn-svn / PKGBUILD
blobdedcde3274aae01d0cc57ea7b17a7dc44ba186b9
1 # Maintainer:yugrotavele <yugrotavele at archlinux dot us>
2 # Contributor:Juergen Graefe <jg72@arcor.de>
4 pkgname=slrn-svn
5 pkgver=327
6 pkgrel=2
7 pkgdesc="A highly customizable text-based newsreader"
8 arch=('i686' 'x86_64')
9 url="http://www.slrn.org/"
10 license=('GPL')
11 depends=('openssl' 'slang')
12 makedepends=('subversion' 'uudeview')
13 optdepends=('metamail')
14 options=('!makeflags' 'docs' 'zipman')
15 backup=(etc/slrnrc)
16 provides=('slrn-svn')
17 conflicts=('slrn')
18 install=${pkgname}.install
20 _svntrunk=https://slrn.svn.sourceforge.net/svnroot/slrn/trunk
21 _svnmod=slrn
23 build() {
24   cd "$srcdir"
26   if [ -d $_svnmod/.svn ]; then
27     (cd $_svnmod && svn up -r $pkgver)
28   else
29     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30   fi
32   msg "SVN checkout done or server timeout"
33   msg "Starting make..."
34   
35   rm -rf "$srcdir/$_svnmod-build"
36   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37   cd "$srcdir/$_svnmod-build"
38     ./configure --prefix=/usr --sysconfdir=/etc \
39         --enable-setgid-code \
40         --with-slrnpull --with-ssl --with-uu \
41         --with-uulib=/usr/lib/uudeview \
42         --with-uuinc=/usr/include/uudeview \
43         --enable-spoilers
44   make
47 package() {
48   cd "$srcdir/$_svnmod-build"
49   make DESTDIR="$pkgdir" install
50   install -Dm 755 contrib/cleanscore $pkgdir/usr/bin/cleanscore
51   install -Dm 644 doc/slrn.rc $pkgdir/etc/slrnrc