summaryrefslogtreecommitdiff
path: root/main/py3-mimeparse/APKBUILD
blob: 246a70fa31385f8a68d8e2e4762d678068e69780 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-mimeparse
_pkgname=python-mimeparse
pkgver=1.6.0
pkgrel=5
pkgdesc="Basic functions for parsing mime-types and matching media-ranges"
url="https://github.com/falconry/python-mimeparse"
arch="noarch"
license="MIT"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/falconry/python-mimeparse/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-mimeparse" # Backwards compatibility
provides="py-mimeparse=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 mimeparse_test.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="31752e6019be3a766fa429d27eab071bb77e1c812e6a241d8b84838eda206549877fb3369200338a603d4d93fbbbaaa16f6cf47391aeac65675fd271a5f39259  py3-mimeparse-1.6.0.tar.gz"