summaryrefslogtreecommitdiffstats
path: root/main/py-twisted-mail/APKBUILD
blob: 67f2ca80d7918c7ba581eb1f18e45e2def7ac336 (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
# Contributor: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer:
pkgname=py-twisted-mail
_pkgname=TwistedMail
pkgver=13.1.0
pkgrel=0
pkgdesc="Python Twisted Mail library"
url="http://twistedmatrix.com/trac/wiki/TwistedMail"
arch="noarch"
license="MIT"
depends="py-twisted"
makedepends="python-dev"
source="http://twistedmatrix.com/Releases/Mail/${pkgver%.*}/$_pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="3cf7f77e43a13a2b3259e5204e6f4f2b  TwistedMail-13.1.0.tar.bz2"
sha256sums="45a630a0d8f53d7d924ae87d2df0a6d0b2d3a2c8fd3e06010938f18ca741d8f0  TwistedMail-13.1.0.tar.bz2"
sha512sums="bc758d2f0eab72bae5974fe990bba74b77d4da9161ec6b5837757893e9748824467e294d359eb1267293c51b02cf788318ec0f569f91ad75e16553b62448c854  TwistedMail-13.1.0.tar.bz2"