blob: 473a4536b8ebac3d235e32ff09795144c350a600 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Max Rossmannek <max@rossmannek.de>
# Contributor: Cullen Ross <cullenrss@gmail.com>
pkgname=cobib
pkgver=6.0.3
pkgrel=2
arch=('any')
depends=(
'python'
'python-beautifulsoup4'
'python-bibtexparser'
'python-linkify-it-py'
'python-lxml'
'python-markdown-it-py'
'python-mdit_py_plugins'
'python-natsort'
'python-pylatexenc'
'python-requests'
'python-requests-oauthlib'
'python-rich'
'python-ruamel-yaml'
'python-text-unidecode'
'python-textual'
)
optdepends=(
'python-prompt_toolkit'
'python-regex'
'python-ruamel.yaml.clib'
)
license=('MIT')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-setuptools-scm'
'python-wheel'
'ruby-ronn-ng'
)
provides=('cobib')
conflicts=('cobib')
pkgdesc="Console Bibliography"
url="https://gitlab.com/cobib/${pkgname}"
source=("https://gitlab.com/cobib/cobib/-/releases/v$pkgver/downloads/$pkgname-v$pkgver.tar.gz")
sha512sums=('f88570f8cad84bf8c09d3a363fa9c962d934c92b7658d2bc16f1cd4ccf1488773a91b0527120d9dde68048c045129eec87388fcc02a782d9b119419ff6d53ea7')
build() {
cd "${srcdir}"
python3 -m build --wheel --no-isolation
}
package() {
cd "${srcdir}"
make DESTDIR="${pkgdir}" install_extras
python3 -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|