summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6136870197d1f3bfa69bccc0d6eccba9ce801c2c (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
# Maintainer: lsf
pkgname=python-unicode-slugify-git
_pkgname=unicode-slugify
pkgver=r41.8a9c3dc
pkgrel=2
pkgdesc="A Python slugify application that handles unicode"
arch=(any)
url="https://github.com/mozilla/unicode-slugify"
license=('BSD')
makedepends=("python-setuptools" "git")
depends=("python" "python-unidecode" "python-six")
source=("git+https://github.com/mozilla/unicode-slugify")
sha256sums=('SKIP')
provides=(python-${_pkgname})

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

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

package() {
  cd "$srcdir/$_pkgname"
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}