blob: 10d415589fc0b21a1e2d69ec453bf3698d6f5e50 (
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
|
# Maintainer: karboncore
pkgname=python-recipe-scrapers-git
pkgver=1416.3834dfc9
pkgrel=1
pkgdesc='Python package for scraping recipes data'
arch=(any)
url=https://github.com/hhursev/recipe-scrapers
license=(MIT)
depends=(python-bs4 python-extruct-git python-isodate python-requests)
makedepends=(git python-build python-wheel python-installer)
provides=(${pkgname%-git})
source=(git+https://github.com/hhursev/recipe-scrapers.git)
sha256sums=(SKIP)
pkgver() {
cd "$srcdir/recipe-scrapers"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/recipe-scrapers"
python -m build -wn
}
package() {
cd "$srcdir/recipe-scrapers"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname%-git}/
}
|