summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71f8d978324e83725ad35268d50efb1a84152c59 (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
32
33
34
35
36
37
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>

_name=premailer
pkgname=python-$_name
pkgver=3.10.0
pkgrel=1
pkgdesc="Turns CSS blocks into style attributes"
url="https://premailer.io/"
depends=(
    'python-lxml'
    'python-cssselect'
    'python-cssutils'
    'python-requests'
    'python-cachetools'
)
makedepends=('python-setuptools')
provides=("python-$_name")
conflicts=("python-$_name")
license=('BSD')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('d1875a8411f5dc92b53ef9f193db6c0f879dc378d618e0ad292723e388bfe4c2')

build() {
    cd "${_name}-${pkgver}"
    python setup.py build
}

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

    # Install license
    _licensedir=$pkgdir/usr/share/licenses/$pkgname/
    install -d $_licensedir
    install -m644 LICENSE $_licensedir
}