summaryrefslogtreecommitdiff
path: root/community/fdm/PKGBUILD
blob: a0bf2a771e1fb8bafd875e5b53def090cb66f416 (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
# $Id: PKGBUILD 55396 2011-09-11 20:59:09Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: Grigorios Bouzakis <grbzks@gmail.com>

pkgname=fdm
pkgver=1.6
pkgrel=3.1
pkgdesc='Program to fetch and deliver mail'
url='http://fdm.sourceforge.net/'
license=('BSD')
arch=('i686' 'x86_64' 'mips64el')
options=('!makeflags')
depends=('openssl' 'tdb' 'zlib')
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
	'GNUmakefile.patch')
sha1sums=('fb8042f2355062848ff142c9604069b6657e6a82'
          '0bddf0b0403ccee62190355f43fae84932c37436')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	patch -p1 -i ../GNUmakefile.patch
        sed -i 's/LIBS+= -lssl -ltdb -lz/LIBS+= -lssl -lcrypto -ltdb -lz/' GNUmakefile
	make
}

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

	install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}"
	sed '3,17p;d' fdm.c > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	mv examples "${pkgdir}/usr/share/doc/${pkgname}"
}