summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8db56ee4c1e84c461d29c9200c7cbbb665173a9 (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
#Maintainer: aksr <aksr at t-com dot me>
pkgname=tin-unstable
_pkgname=tin
pkgver=2.3.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')
source=("ftp://ftp.tin.org/pub/news/clients/tin/unstable/$_pkgname-$pkgver.tar.gz"
        'LICENSE')
md5sums=('7782029d021baf1e660721d2c28a92c0'
         '22de35b1bdc6f0df87c93ae794198b21')
sha1sums=('ffa68219023b20f1cbcd9859799d46eefe748990'
          '07e1217ee68bb20f0ad2670e84116a0d67243063')
sha256sums=('1751ab4807648798063340058f0262cd2fe05cb2f9a65b359a2878119df1f55a'
            '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 -Dm644 $srcdir/LICENSE  $pkgdir/usr/share/licenses/$pkgname/LICENSE
}