2020-11-28 16:25:19 +01:00
|
|
|
# Maintainer: loathingkernel <loathingkernel _a_ gmail _d_ com>
|
2022-12-28 16:31:49 +01:00
|
|
|
# Maintainer: RealStickman <mrc+aur _a_ frm01 _d_ net>
|
2020-11-28 16:25:19 +01:00
|
|
|
|
|
|
|
pkgname=comictagger
|
2022-12-28 13:59:03 +01:00
|
|
|
pkgver=1.5.5
|
2022-05-26 18:05:16 +02:00
|
|
|
pkgrel=1
|
2020-11-28 16:25:19 +01:00
|
|
|
pkgdesc='Application for writing metadata to digital comics, written in Python and PyQt'
|
|
|
|
arch=(any)
|
2022-04-14 17:28:38 +02:00
|
|
|
url='https://github.com/comictagger/comictagger'
|
2020-11-28 16:25:19 +01:00
|
|
|
license=(Apache)
|
2022-04-16 13:49:23 +02:00
|
|
|
depends=(python
|
2022-12-28 13:59:03 +01:00
|
|
|
python-appdirs
|
2022-04-16 13:49:23 +02:00
|
|
|
python-beautifulsoup4
|
2022-09-08 17:58:18 +02:00
|
|
|
python-importlib-metadata
|
2022-04-16 13:49:23 +02:00
|
|
|
python-natsort
|
2022-09-08 17:58:18 +02:00
|
|
|
python-pathvalidate
|
2022-04-16 13:49:23 +02:00
|
|
|
python-pillow
|
|
|
|
python-py7zr
|
2022-09-08 17:58:18 +02:00
|
|
|
python-pycountry
|
2022-12-28 13:59:03 +01:00
|
|
|
python-pyicu
|
|
|
|
python-rapidfuzz
|
2022-09-08 17:58:18 +02:00
|
|
|
python-requests
|
|
|
|
python-text2digits
|
|
|
|
python-typing_extensions
|
2022-09-08 18:58:30 +02:00
|
|
|
python-wordninja
|
2022-04-16 13:49:23 +02:00
|
|
|
python-unrar-cffi
|
|
|
|
python-pyqt5
|
2021-01-20 16:01:13 +01:00
|
|
|
)
|
2022-04-16 13:49:23 +02:00
|
|
|
makedepends=(python-{build,installer}
|
|
|
|
python-setuptools-scm
|
|
|
|
python-wheel)
|
|
|
|
makedepends+=(git)
|
2022-12-28 13:59:03 +01:00
|
|
|
_tag=1.5.5
|
2022-04-14 17:28:38 +02:00
|
|
|
source=(git+https://github.com/comictagger/comictagger.git#tag=$_tag)
|
2020-11-28 16:25:19 +01:00
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
2021-01-20 16:01:13 +01:00
|
|
|
pkgver() {
|
|
|
|
cd comictagger
|
2022-04-14 17:28:38 +02:00
|
|
|
printf "${_tag//-/.}"
|
2021-01-20 16:01:13 +01:00
|
|
|
}
|
|
|
|
|
2020-11-28 16:25:19 +01:00
|
|
|
build() {
|
|
|
|
cd comictagger
|
2022-04-16 13:49:23 +02:00
|
|
|
python -m build -wn
|
2020-11-28 16:25:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd comictagger
|
2022-04-16 13:49:23 +02:00
|
|
|
python -m installer -d "$pkgdir" dist/*.whl
|
2021-01-20 16:01:13 +01:00
|
|
|
|
|
|
|
sed -e 's|/usr/local/share/comictagger/app.png|/usr/share/icons/comictagger.png|g' \
|
|
|
|
-e 's|%%CTSCRIPT%% %F|/usr/bin/comictagger|g' \
|
|
|
|
-i desktop-integration/linux/ComicTagger.desktop
|
|
|
|
|
|
|
|
install -Dm644 desktop-integration/linux/ComicTagger.desktop \
|
|
|
|
"$pkgdir"/usr/share/applications/comictagger.desktop
|
|
|
|
install -Dm644 comictaggerlib/graphics/app.png \
|
|
|
|
"$pkgdir"/usr/share/icons/comictagger.png
|
2020-11-28 16:25:19 +01:00
|
|
|
}
|