summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 625289841cc1c2de267c2fe41d57d689b8f4fdb5 (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
# Maintainer: Aseem Athale <athaleaseem@gmail.com>

_base=autoscraper
pkgname=python-${_base}
pkgver=1.1.14
pkgrel=2
pkgdesc="A smart, automatic, fast and lightweight web scraper for Python"
arch=('any')
url="https://github.com/alirezamika/${_base}"
license=(MIT)
depends=('python' 'python-requests' 'python-beautifulsoup4' 'python-lxml')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz"::${url}/archive/refs/tags/v${pkgver}.tar.gz)
sha512sums=('858aebc1163dd2d74433dff3cc0fba25d3a64b052c32842a5f0da2e305df3771d99292bc281a04120587a1dcf3cf386831b4d235114c1e4ea95c77ef25b6c5a3')

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

package() {
  cd "${_base}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}