diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = python-unicode-slugify-git pkgdesc = A Python slugify application that handles unicode pkgver = r41.8a9c3dc - pkgrel = 1 + pkgrel = 2 url = https://github.com/mozilla/unicode-slugify arch = any license = BSD @@ -10,6 +10,7 @@ pkgbase = python-unicode-slugify-git depends = python depends = python-unidecode depends = python-six + provides = python-unicode-slugify source = git+https://github.com/mozilla/unicode-slugify sha256sums = SKIP @@ -1,8 +1,8 @@ # Maintainer: lsf pkgname=python-unicode-slugify-git -_pkgbase=unicode-slugify +_pkgname=unicode-slugify pkgver=r41.8a9c3dc -pkgrel=1 +pkgrel=2 pkgdesc="A Python slugify application that handles unicode" arch=(any) url="https://github.com/mozilla/unicode-slugify" @@ -11,18 +11,19 @@ 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/$_pkgbase" + cd "$srcdir/$_pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "$srcdir/$_pkgbase" + cd "$srcdir/$_pkgname" python setup.py build } package() { - cd "$srcdir/$_pkgbase" + cd "$srcdir/$_pkgname" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build } |