updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / nntpgrab / PKGBUILD
blob6951a88896c7794721ad0ca1a41c323b5fa8274b
1 # Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
3 pkgbase=nntpgrab
4 pkgname=nntpgrab
5 true && pkgname=('nntpgrab-gtk' 'nntpgrab-qt')
6 pkgver=0.7.1
7 pkgrel=1
8 pkgdesc="NNTPGrab is an open source usenet download program"
9 arch=('i686' 'x86_64')
10 url="http://www.nntpgrab.nl/"
11 license="gpl2"
12 makedepends=('gtk2' 'libsoup' 'networkmanager' 'qt'
13 'pkgconfig' 'par2cmdline' 'intltool')
14 options=('!libtool')
15 source=("http://openftd.mirrors.sebsoft.nl/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2")
17 build()
19         cd ${pkgbase}-${pkgver}
21         ./configure\
22                 --enable-introspection=no \
23                 --enable-gtk-doc=no \
24                 --enable-gtk-doc-html=no \
25                 --enable-gtk-doc-pdf=no \
26                 --disable-gtk3 \
27                 --prefix=/usr
28         make
30         pushd client/gui_qt
31                 qmake gui_qt.pro -o Makefile
32                 make
33         popd
35         pushd server_qt
36                 qmake server_qt.pro -o Makefile
37                 make
38         popd
41 package_nntpgrab-gtk() {
42         pkgdesc="NNTPGrab is an open source usenet download program"
43         depends=('gtk2' 'libsoup' 'networkmanager' 'desktop-file-utils')
44         optdepends=('par2cmdline: for automatic repair'
45                 'unrar: for automatic extraction')
46         install='nntpgrab.install'
47         cd ${pkgbase}-${pkgver}
48         make DESTDIR=${pkgdir} install
51 package_nntpgrab-qt() {
52         pkgdesc="NNTPGrab is an open source usenet download program qt version"
53         depends=('nntpgrab-gtk' 'qt')
54         optdepends=('par2cmdline: for automatic repair'
55                 'unrar: for automatic extraction')
56         install='nntpgrab.install'
57         cd ${pkgbase}-${pkgver}
58         mkdir -p ${pkgdir}/usr/bin
59         mkdir -p ${pkgdir}/usr/share/applications
60         install -m 0755 client/gui_qt/nntpgrab_gui_qt ${pkgdir}/usr/bin/nntpgrab_gui_qt
61         mkdir -p ${pkgdir}/usr/share/nntpgrab/translations/
62         install -m 0644 client/gui_qt/translations/*.qm ${pkgdir}/usr/share/nntpgrab/translations
63         install -m 0644 client/gui_qt/nntpgrab_qt.desktop ${pkgdir}/usr/share/applications/nntpgrab_qt.desktop
64         install -m 0755 server_qt/nntpgrab_server_qt ${pkgdir}/usr/bin/nntpgrab_server_qt
65         install -m 0644 server_qt/nntpgrab_server_qt.desktop ${pkgdir}/usr/share/applications/nntpgrab_server_qt.desktop
67 sha256sums=('0df5253924a388ef65ef106f83606b23188b412dcb115f554f04f92a2e140743')