summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76b1a0a2c21b452ba8c349c80a0da4bfa3366abf (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: Manuel Palenzuela <sadshinobi@protonmail.com>

author=PixxxeL
pkgname=python-html-purifier-git
_gitname=python-html-purifier
pkgver=0.r26.00f38b6
pkgrel=1
pkgdesc='A Python module to purify HTML.'
url='https://github.com/PixxxeL/python-html-purifier.git'
arch=('any')
license=('GPL')
depends=('python')
makedepends=('git')
provides=('python-html-purifier')

source=("git+https://github.com/$author/$_gitname.git")

md5sums=('SKIP')
sha1sums=('SKIP')
sha256sums=('SKIP')

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

package() {
  cd "$_gitname"
  python setup.py install --root=$pkgdir
}