summaryrefslogtreecommitdiff
path: root/extra/procmail/PKGBUILD
blob: 92ebabde5bad45099f73492ad2f754f02048a717 (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
# $Id: PKGBUILD 151448 2012-02-26 11:17:19Z pierre $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=procmail
pkgver=3.22
pkgrel=5
pkgdesc="Highly configurable auto mail processing."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.procmail.org"
license=('GPL' 'custom:Artistic')
depends=('glibc' 'sh')
makedepends=('smtp-server')
source=(#"http://www.procmail.org/${pkgname}-${pkgver}.tar.gz" # currently down
        "ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/${pkgname}-${pkgver}.tar.gz"
        'procmail-3.22-getline.patch')
md5sums=('1678ea99b973eb77eda4ecf6acae53f1'
         'cf8e5d4854050ab0c836e07406a3dfa9')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -p1 -i ${srcdir}/procmail-3.22-getline.patch
  yes n | make CFLAGS0="${CFLAGS} ${LDFLAGS}" LOCKINGTEST="/tmp ."
  make BASENAME=${pkgdir}/usr MANDIR=${pkgdir}/usr/share/man install
}

package() {
  cd $srcdir/$pkgname-$pkgver
  install -D -m644 Artistic ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  install -d -m755 ${pkgdir}/usr/share/doc/${pkgname}/examples
  install -m644 examples/* ${pkgdir}/usr/share/doc/${pkgname}/examples/
}