summaryrefslogtreecommitdiff
path: root/community/metamail/PKGBUILD
blob: 593c17190ee0c5f55dd1fc3d239acafba2e2d83e (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
# $Id: PKGBUILD 100520 2013-11-05 11:41:56Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sekenre <sekenre at ukfsn dot org>
# Contributor: Daenyth <Daenyth+Arch [AT] gmail [DOT] com>

pkgname=metamail
pkgver=2.7
pkgrel=7
pkgdesc="Used to display and process MIME messages"
arch=('i686' 'x86_64' 'mips64el')
url="http://packages.debian.org/stable/mail/metamail"
license=('custom')
depends=('ncurses')
noextract=(metamail_$pkgver-52.diff.gz)
source=("ftp://ftp.archlinux.org/other/community/metamail/metamail_$pkgver.orig.tar.gz" \
	"ftp://ftp.archlinux.org/other/community/metamail/metamail_$pkgver-54.diff.gz" \
	license)
md5sums=('c6967e9bc5d3c919764b02df24efca01'
         '2071dc7b9c33345443ab9a619e640a69'
         '38be502570f3ce5b5a2bafd6a876373f')

build() {
  cd $srcdir/metamail-$pkgver.orig

  patch -p1 <$srcdir/metamail_$pkgver-54.diff
  sed -i 's|getline|xgetline|' metamail/uue.c src/metamail/uue.c

  sh ./bootstrap
  sh ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/metamail-$pkgver.orig
  make DESTDIR=$pkgdir install
  install -D -m0644 $srcdir/license $pkgdir/usr/share/licenses/$pkgname/license
}