blob: 59a9cdd14b3a3d925c92db7dfaae36ca5b539f2c (
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
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
pkgname=python-syncedlyrics
_pkgname="${pkgname#python-}"
pkgver=1.0.1
pkgrel=1
pkgdesc='Get an LRC format (synchronized) lyrics for your music'
arch=(any)
url='https://github.com/moehmeni/syncedlyrics'
license=('MIT')
depends=(
'python-beautifulsoup4>=4.11.1'
'python-rapidfuzz>=2.13.2'
'python-requests>=2.28.1'
'python>=3.8'
)
makedepends=(
python-build
python-installer
python-poetry-core
python-wheel
)
checkdepends=(python-pytest)
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('e9e36b8bab2d79428cb85b54a939f56d0d6210444b501b6861ffdf2266626840')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${_pkgname}-${pkgver}"
pytest tests.py
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|