summaryrefslogtreecommitdiff
path: root/community/fdm/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-12 23:14:44 +0000
committerroot <root@rshg054.dnsready.net>2011-09-12 23:14:44 +0000
commitb3a841a1f66eff75be29fba090b83ce4322d4721 (patch)
treef91ebd6bbbf3590fc3ca861c5b209e408d22b39b /community/fdm/PKGBUILD
parent1d2f1a1e70011a41d17f2f16d5e90c491ccdabb8 (diff)
Mon Sep 12 23:14:44 UTC 2011
Diffstat (limited to 'community/fdm/PKGBUILD')
-rw-r--r--community/fdm/PKGBUILD44
1 files changed, 19 insertions, 25 deletions
diff --git a/community/fdm/PKGBUILD b/community/fdm/PKGBUILD
index 5f1b8960a..5546042ad 100644
--- a/community/fdm/PKGBUILD
+++ b/community/fdm/PKGBUILD
@@ -1,39 +1,33 @@
-# $Id: PKGBUILD 14180 2010-04-01 23:59:34Z andrea $
-# Maintainer:
+# $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=2
-pkgdesc="A program to fetch and deliver mail"
-arch=('i686' 'x86_64')
-url="http://fdm.sourceforge.net"
+pkgrel=3
+pkgdesc='Program to fetch and deliver mail'
+url='http://fdm.sourceforge.net/'
license=('BSD')
-depends=('openssl' 'tdb')
+arch=('i686' 'x86_64')
options=('!makeflags')
-source=("http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz"
- 'GNUmakefile.patch'
- 'LICENSE')
-md5sums=('b2b9bfe95217b290142bde1621eb9a37'
- '52955d31121a6365914a0d063be5b32b'
- 'b0043d5c7160e5f797048d0d584ef4fa')
+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 -Np1 -i $srcdir/GNUmakefile.patch || return 1
-
- make || return 1
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i ../GNUmakefile.patch
+ make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
-
- install -D -m 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
-# Examples
- mkdir -p "$pkgdir/usr/share/doc/$pkgname/examples"
- mv "$srcdir/$pkgname-$pkgver/examples" "$pkgdir/usr/share/doc/$pkgname/"
+ 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}"
}