summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a60c8e3829a0911660fa19d41dd4812aca67fbca (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
# Maintainer: lucy <lucy@luz.lu>

pkgname=python-ftfy-git
_gitname=python-ftfy
pkgver=r419.96c8319
pkgrel=1
pkgdesc='Fixes some problems with Unicode text after the fact'
url="https://github.com/LuminosoInsight/python-ftfy"
arch=('any')
license=('MIT')
makedepends=('python' 'python-setuptools' 'git')
depends=('python' 'python-html5lib' 'python-wcwidth')
source=('git+https://github.com/LuminosoInsight/python-ftfy.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$_gitname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/$_gitname"
	python setup.py build
}

package() {
	cd "$srcdir/$_gitname"
	python setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 LICENSE.txt \
		"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}