aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-twisted-mail/APKBUILD
blob: 8605ee13208deccb56cb158120df8c7cff3ca545 (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=15.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="3ab3b9e3ac935ae55c5db37acde62c02  TwistedMail-15.1.0.tar.bz2"
sha256sums="fa83f1afc4c2f53321fc2911b64dc923755c0dd8f8f53cee1bbdecb6bcee6474  TwistedMail-15.1.0.tar.bz2"
sha512sums="2b5453e83185fa51222e26abf59a743c8cdc872f556c28135a7d7a717cf438f5a9d3ca6085ad4b35ae64509e49130812c3dba4cbe65aacdb738fc903492a1a15  TwistedMail-15.1.0.tar.bz2"