blob: e16368c262f42e470639ee88b2ba18043660d096 (
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
|
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: akojo
# Contributor: quizzlo
# Maintainer: aksr <aksr at t-com dot me>
pkgname=tin
pkgver=2.4.4
pkgrel=1
pkgdesc="A threaded NNTP and spool based UseNet newsreader."
arch=('i686' 'x86_64')
url="http://www.tin.org"
license=('BSD')
depends=('ncurses' 'ispell' 'perl' 'gnupg' 'dante' 'icu' 'libidn')
conflicts=('tin-unstable')
source=("ftp://ftp.tin.org/pub/news/clients/tin/v${pkgver%.*}/$pkgname-$pkgver.tar.gz"
'LICENSE')
md5sums=('67f25e1fd97f314b248af7cf1f188af1'
'22de35b1bdc6f0df87c93ae794198b21')
sha1sums=('306d682912397124ae9a52fe7d2925dc1ecf2553'
'07e1217ee68bb20f0ad2670e84116a0d67243063')
sha256sums=('2b513aabc0b94f7e92eca175e3ed1a550030769c07bb236d1da903fed9ce4431'
'5ccb431a94c2d2f093b8f93325075e5ad886772ba2a452478120b86ce71c0683')
build() {
cd $srcdir/$pkgname-$pkgver
unset CFLAGS
unset CPPFLAGS
./configure --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/news \
--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
rm -f $pkgdir/usr/share/man/man5/mmdf.5
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
}
|