diff options
author | txtsd | 2023-03-16 00:35:52 +0530 |
---|---|---|
committer | txtsd | 2023-03-16 00:35:52 +0530 |
commit | 8766177c0d61f96cda13679af94c54b69b4b3e87 (patch) | |
tree | 6e783e53c4acdab15f7501a10e714277fc32e6fc | |
download | aur-8766177c0d61f96cda13679af94c54b69b4b3e87.tar.gz |
Initial Commit
Signed-off-by: txtsd <code@ihavea.quest>
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7cfd9d41931a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-syncedlyrics + pkgdesc = Get an LRC format (synchronized) lyrics for your music + pkgver = 0.4.0 + pkgrel = 1 + url = https://github.com/rtcq/syncedlyrics + arch = any + license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-poetry-core + depends = python>=3.7 + depends = python-requests>=2.28.1 + depends = python-rapidfuzz>=2.13.2 + depends = python-beautifulsoup4>=4.11.1 + conflicts = python-syncedlyrics-git + source = syncedlyrics-0.4.0.tar.gz::https://github.com/rtcq/syncedlyrics/archive/refs/tags/v0.4.0.tar.gz + sha256sums = 13672adb05ec6f51c3dafe6efb34b7379c3477f47ffaf9d87d9c1dbf70900956 + +pkgname = python-syncedlyrics diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..dc5bd950e2a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ + +*.tar.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..07c600229831 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: txtsd <aur.archlinux@ihavea.quest> + +pkgname=python-syncedlyrics +_pkgname=syncedlyrics +pkgver=0.4.0 +pkgrel=1 +pkgdesc='Get an LRC format (synchronized) lyrics for your music' +arch=('any') +url='https://github.com/rtcq/syncedlyrics' +license=('MIT') +depends=('python>=3.7' 'python-requests>=2.28.1' 'python-rapidfuzz>=2.13.2' + 'python-beautifulsoup4>=4.11.1') +makedepends=('python-build' 'python-installer' 'python-wheel' + 'python-poetry-core') +conflicts=("${pkgname}-git") +source=("${_pkgname}-${pkgver}".tar.gz::"https://github.com/rtcq/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('13672adb05ec6f51c3dafe6efb34b7379c3477f47ffaf9d87d9c1dbf70900956') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python -m build --wheel --no-isolation +} + +check() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python -m unittest -v +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |