summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f173a83f9a0eef03bd7d5d0f592e14c61eaed748 (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
73
74
75
76
77
78
# Maintainer: aksr <aksr at t-com dot me>
pkgname=nmh-git
pkgver=1.7+dev.r4358
pkgrel=1
epoch=
pkgdesc="Powerful electronic mail handling system, based on a set of command-line utilities."
arch=('i686' 'x86_64')
url="http://git.savannah.gnu.org/cgit/nmh.git"
url="http://www.nongnu.org/nmh/"
license=('BSD')
groups=()
depends=('db' 'openssl' 'libsasl')
makedepends=('git')
checkdepends=()
optdepends=()
provides=('nmh')
conflicts=('nmh')
replaces=()
backup=(etc/nmh/components
        etc/nmh/digestcomps
        etc/nmh/distcomps
        etc/nmh/forwcomps
        etc/nmh/MailAliases
        etc/nmh/mhl.body
        etc/nmh/mhl.digest
        etc/nmh/mhl.format
        etc/nmh/mhl.forward
        etc/nmh/mhl.headers
        etc/nmh/mhl.reply
        etc/nmh/mhn.defaults
        etc/nmh/mts.conf
        etc/nmh/rcvdistcomps
        etc/nmh/rcvdistcomps.outbox
        etc/nmh/replcomps
        etc/nmh/replgroupcomps
        etc/nmh/scan.default
        etc/nmh/scan.highlighted
        etc/nmh/scan.mailx
        etc/nmh/scan.MMDDYY
        etc/nmh/scan.nomime
        etc/nmh/scan.size
        etc/nmh/scan.time
        etc/nmh/scan.timely
        etc/nmh/scan.unseen
        etc/nmh/scan.YYYYMMDD)
changelog=
install=
source=("$pkgname::git://git.sv.gnu.org/nmh.git")
noextract=()
options=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "%s.r%s" "$(cat -s VERSION)" "$(git rev-list --count HEAD)"
}

prepare() {
  cd "$srcdir/$pkgname"
  ./autogen.sh
}

build() {
  cd "$srcdir/$pkgname"
  ./configure --prefix=/usr         \
              --sysconfdir=/etc     \
              --libexecdir=/usr/lib \
              --with-cyrus-sasl     \
              --with-tls
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir/" install
  install -D -m644 COPYRIGHT "$pkgdir/usr/share/licenses/${pkgname%-*}/COPYRIGHT"
}