blob: c66c6607971804ec381034f8395af1c02ba8f58b (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: akojo
# Contributor: quizzlo
# Contributor: Kr1ss $(tr +- .@ <<<'<kr1ss+x-yandex+com>')
# Maintainer: aksr <aksr at t-com dot me>
pkgname=tin
pkgver=2.6.3
pkgrel=2
pkgdesc='A threaded NNTP and spool based UseNet newsreader.'
arch=('i686' 'x86_64')
url='http://www.tin.org'
license=('BSD')
depends=('gsasl' 'icu' 'ncurses' 'pcre' 'perl')
makedepends=('dante' 'gnupg' 'ispell' 'libidn')
conflicts=('tin-unstable')
source=("ftp://ftp.tin.org/pub/news/clients/tin/v${pkgver%.*}/$pkgname-$pkgver.tar.gz" 'LICENSE')
md5sums=('3ab1439815d1f52eee51825fa499c31d'
'd11b33b8a9dd5c45c8ce290cf52fa764')
sha1sums=('5469a95ef4a7e87bebebaa7a5474f44197718c6f'
'47b435e30e21815386db3123175d9a3bf9d63c76')
sha256sums=('8386202ce600d5580d04beb6ac6fca16427378b6ee2d1efb27a779f8505fbcda'
'bf3c5eae73413ca2a64ef3a047ad3551a0613227b0aa99020b25cc96d9813f65')
build() {
cd "$srcdir/$pkgname-$pkgver"
unset CFLAGS
unset CPPFLAGS
./configure CFLAGS='-fpermissive' \
--prefix=/usr --mandir=/usr/share/man \
--enable-shell-escape \
--enable-nntp \
--enable-nls \
--enable-ipv6 \
--enable-append-pid \
--enable-posting \
--enable-piping \
--enable-locale \
--enable-xhdr-xref \
--with-spool-dir=/var/spool/news \
--with-ispell=/usr/bin/ispell \
--with-gpg=/usr/bin/gpg \
--with-pcre=/usr \
--with-screen=ncursesw \
--with-inews-dir=/usr/lib/news \
--with-libdir=/usr/lib \
--with-coffee \
--with-socks \
--with-socks5 \
--disable-prototypes \
--disable-echo
# --with-domain-name (default: unset)
# --with-nntp-default-server (default: news.$DOMAIN_NAME)
# --with-shell=PROG (default: sh, except on BSD where csh is used)
# --with-defaults-dir=PATH (default: /etc/tin)
# --with-editor=PROG (default: empty)
# --with-mailer=PROG (default: empty)
# --with-mailbox=PATH (default: empty)
make build
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
rm -f $pkgdir/usr/share/man/man5/{mbox.5,mmdf.5} # conflict with mutt package
mv $pkgdir/usr/bin/url_handler.pl $pkgdir/usr/bin/tin_url_handler.pl
install -D -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
cd doc/
install -D -m644 *.3 -t"$pkgdir/usr/share/man/man3/"
install -D -m644 l10n/de/*.1 -t"$pkgdir/usr/share/man/de/man1/"
install -D -m644 l10n/de/*.5 -t"$pkgdir/usr/share/man/de/man5/"
}
|