blob: 7dcccc1c71f9e751c3033909acdf56a7c64ca250 (
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
|
# $Id: PKGBUILD 153691 2012-03-18 02:01:54Z eric $
# Maintainer: Aaron Griffin <aaron@archlinux.org>
pkgname=fetchmail
pkgver=6.3.21
pkgrel=3
pkgdesc="A remote-mail retrieval utility"
arch=('i686' 'x86_64')
url="http://fetchmail.berlios.de/"
license=('GPL')
depends=('openssl')
makedepends=('python2')
optdepends=('tk: for using fetchmailconf'
'python2: for using fetchmailconf')
backup=('etc/conf.d/fetchmail')
options=('!makeflags')
install=fetchmail.install
source=(http://downloads.sourceforge.net/$pkgname.berlios/${pkgname}-${pkgver}.tar.xz{,.asc}
fetchmail.rc fetchmail.conf)
sha1sums=('4f1e5f2e1a616d4007da1de9c976c2c1fb5dcb81'
'bc8c68ec0d71b97d3168981cbaa4b04ab8e56059'
'910ec21ad0a619db67e4665189dc46d2a0634ea5'
'30401729386d6f774c6c36ab8530842166de54a8')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' fetchmailconf.py
PYTHON=python2 ./configure --prefix=/usr --with-ssl=/usr
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm755 "${srcdir}/fetchmail.rc" "${pkgdir}/etc/rc.d/fetchmail"
install -Dm644 "${srcdir}/fetchmail.conf" "${pkgdir}/etc/conf.d/fetchmail"
install -d -o 90 -g nobody "${pkgdir}/var/lib/fetchmail"
}
|