# Description: POP3 mail retriever with reliable Maildir and command delivery
# URL:         http://pyropus.ca/software/getmail/
# Maintainer:  James Mills, prologic at shortcircuit dot net dot au
# Packager:    Han Boetes, han at mijncomputer dot nl
#
# Depends on:  python

name=getmail
version=4.7.2
release=1
source=(http://pyropus.ca/software/$name/old-versions/$name-$version.tar.gz
        getmail.diff)

build() {
	cd $name-$version
	patch -i $SRC/getmail.diff
	python setup.py install --root=$PKG
	rm -rf $PKG/usr/share/doc
	sed -i 's|#!/usr/bin/python|& -Wignore:.:DeprecationWarning:.:0|' $PKG/usr/bin/getmail
	chown -R root:root $PKG
}
