summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2774cd3c18224acbcfa4ea60080aecdd035f7cd (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
# Maintainer: GI_Jack <GI_Jack@hackermail.com>

pkgname=python-adblockparser 
_pypiname=adblockparser
pkgver=0.7
pkgrel=2
pkgdesc="A package for working with Adblock Plus filter rules. It can parse Adblock Plus filters and match URLs against them"
url="https://github.com/scrapinghub/adblockparser/"
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=(${_pypiname}-${pkgver}.tar.gz::"https://github.com/scrapinghub/adblockparser/archive/${pkgver}.tar.gz")
sha256sums=('cb2378a5e704e9cf6efb0c4a9ea5dc43997beec95635f25fc94fae5971f9035c')

build() {
    cd "${_pypiname}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${_pypiname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}