aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-filetype/APKBUILD
blob: 24e759dae2cbb727011198f602742d7d76207470 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-filetype
pkgver=1.0.7
pkgrel=1
pkgdesc="infer file type and MIME from any file/buffer"
url="https://github.com/h2non/filetype.py"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/h2non/filetype.py/archive/v$pkgver.tar.gz"
builddir="$srcdir/filetype.py-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest discover
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/examples
}

sha512sums="f6d861a9108ffb796858bfdfb26d1bdf6aa9704794fa86340cc36a2920b4f11e12faf4271d19bca9a89be76d8fcff43e8859c8def2525ddbadd52a18c7f68cac  py3-filetype-1.0.7.tar.gz"