aboutsummaryrefslogtreecommitdiffstats
path: root/testing/getmail/APKBUILD
blob: b643059c952fbf9b2962ae082b5aa9c19467c8c4 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=getmail
pkgver=5.6
pkgrel=0
pkgdesc="POP3, IMAP4, and SDPS mail retriever with Maildir delivery"
url="http://pyropus.ca/software/getmail/"
arch="noarch"
license="GPL-2.0"
depends="python2"
depends_dev=""
makedepends="python2-dev"
install=""
subpackages="$pkgname-doc"
options="!check" # contains no tests
source="http://pyropus.ca/software/getmail/old-versions/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"
	# fix some broken shebang calls
	sed -i -e "s|#![ ]*/usr/bin/env python2\.3|#!/usr/bin/env python2|" $(find $pkgdir -name '*.py')
}

sha512sums="7ee34f214ab4d98d1b34e46abba61561133f27edf1f64bb9c5d5f671e6944724d1773234bd8ab626607b732cc54fd335cbfcb69fdff8f4d8fcdb33108b25bafd  getmail-5.6.tar.gz"