summaryrefslogtreecommitdiff
path: root/community/fdm/PKGBUILD
blob: 92003baa9ae3e6c7cd80d2e2a9b064cff2360eaf (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
# $Id: PKGBUILD 14180 2010-04-01 23:59:34Z andrea $
# Maintainer:
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: Grigorios Bouzakis <grbzks@gmail.com>

pkgname=fdm
pkgver=1.6
pkgrel=2
pkgdesc="A program to fetch and deliver mail"
arch=('i686' 'x86_64' 'mips64el')
url="http://fdm.sourceforge.net"
license=('BSD')
depends=('openssl' 'tdb')
options=('!makeflags')
source=("http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz"
	'GNUmakefile.patch'
	'LICENSE')
md5sums=('b2b9bfe95217b290142bde1621eb9a37'
         '52955d31121a6365914a0d063be5b32b'
         'b0043d5c7160e5f797048d0d584ef4fa')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  patch -Np1 -i $srcdir/GNUmakefile.patch || return 1

  make || return 1
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install

  install -D -m 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

# Examples
  mkdir -p "$pkgdir/usr/share/doc/$pkgname/examples"
  mv "$srcdir/$pkgname-$pkgver/examples" "$pkgdir/usr/share/doc/$pkgname/"
}