summaryrefslogtreecommitdiff
path: root/community/nzbget/PKGBUILD
blob: 60ca3c6d01d998977abe2ea12e2c16477efb2ed1 (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
# $Id: PKGBUILD 68199 2012-03-18 23:15:46Z arodseth $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=nzbget
pkgver=0.7.0
pkgrel=4
pkgdesc="Download from Usenet using .nzb files"
arch=('x86_64' 'i686' 'mips64el')
url="http://nzbget.sourceforge.net/"
license=('GPL')
depends=('gnutls' 'libpar2' 'libxml2' 'libsigc++' 'libgcrypt')
makedepends=('autoconf' 'automake')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('b798bbcc9f6816b4e19a95f74df067440f7ad49e1c16a3f33f99bddf7916771e')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr --enable-parcheck
  make CXXFLAGS="-lsigc-2.0"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
  install -d "$pkgdir/usr/share/$pkgname"
  install -m644 -t "$pkgdir/usr/share/$pkgname" \
    AUTHORS postprocess-example.sh postprocess-example.conf \
    ChangeLog nzbget.conf.example README
}

# vim:set ts=2 sw=2 et: