aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-slugify/APKBUILD
blob: b7170a505a45bc52490d078da06331952f07c74f (plain) (blame)
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: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-slugify
_pkgname=python-slugify
pkgver=5.0.1
pkgrel=0
pkgdesc="A Python slugify application that handles unicode"
url="https://github.com/un33k/python-slugify"
arch="noarch"
license="MIT"
depends="python3 py3-text-unidecode"
makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/un33k/python-slugify/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 test.py
}

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

sha512sums="
6c52d6242fb6b2379e28b074987b474111527ac336dfa673828e5283347cfc52e056d9485251cde90493ea2389210701f566ce01916ae250d76549aafbea75a8  python-slugify-5.0.1.tar.gz
"