blob: f9897fa198d80b8a30045701f5998b90432a3d02 (
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
38
39
40
|
# Maintainer: Michal Wojdyla < micwoj9292 at gmail dot com >
# Contributor: Alessio <alessio@linux.com>
# Contributor: Hauke Rehfeld <aur.archlinux.org@haukerehfeld.de>
pkgname=archivebox-git
pkgver=0.8.5rc53.r486.eaf72563
pkgrel=1
pkgdesc="Create a local, staticm browsable archive of websites."
arch=('x86_64' 'i686')
url="https://github.com/pirate/ArchiveBox/"
#depends=('python' 'git' 'wget' 'curl' 'youtube-dl' 'chromium')
depends=('python' 'python-abx-pkg' 'python-atomicwrites' 'python-base32_crockford' 'python-benedict' 'python-click' 'python-daphne' 'python-dateparser' 'python-dateutil' 'python-django' 'python-django-stubs-ext' 'python-feedparser' 'python-pydantic' 'python-pydantic-core' 'python-pydantic-settings' 'python-python-crontab' 'python-requests' 'python-rich' 'python-rich-click' 'python-toml' 'python-urllib3' 'python-w3lib')
makedepends=('git' 'python-build' 'python-installer' 'python-pdm-backend')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
source=("archivebox::git+${url}#branch=dev")
noextract=()
sha256sums=('SKIP')
license=('MIT')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long | sed 's/^v//;s/-rc./rc/;s/\([^-]*-\)g/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/${pkgname%-git}"
}
build() {
cd "$srcdir/${pkgname%-git}"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "$srcdir/${pkgname%-git}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|