aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-slugify/APKBUILD
blob: 0fd0c8546f964fc9769b7705fa3fb93b3e625941 (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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-slugify
_pkgname=python-slugify
pkgver=4.0.1
pkgrel=1
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="c1d99a9dc891c4cfa927e4d2bc5701f47b23b7882cce22350283a53c6ded18e1290196c3bb9838883c29c9cb3582e5e684edffd50dfbb4e9da9c2b821ea54bb5  python-slugify-4.0.1.tar.gz"