comictagger/PKGBUILD.live

59 lines
1.6 KiB
Plaintext
Raw Normal View History

2022-09-08 17:58:18 +02:00
# Maintainer: loathingkernel <loathingkernel _a_ gmail _d_ com>
2023-02-09 16:15:37 +01:00
# Maintainer: RealStickman <mrc+aur _a_ frm01 _d_ net>
2022-09-08 17:58:18 +02:00
pkgname=comictagger
2023-02-09 16:15:37 +01:00
pkgver=1.5.5
2022-09-08 17:58:18 +02:00
pkgrel=1
pkgdesc='Application for writing metadata to digital comics, written in Python and PyQt'
arch=(any)
url='https://github.com/comictagger/comictagger'
license=(Apache)
depends=(python
2023-02-09 16:15:37 +01:00
python-appdirs
2022-09-08 17:58:18 +02:00
python-beautifulsoup4
python-importlib-metadata
python-natsort
python-pathvalidate
python-pillow
python-py7zr
python-pycountry
2023-02-09 16:15:37 +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-09-08 17:58:18 +02:00
python-unrar-cffi
python-pyqt5
)
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel)
makedepends+=(git)
source=(git+https://github.com/comictagger/comictagger.git#branch=develop)
sha256sums=('SKIP')
pkgver() {
cd comictagger
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd comictagger
python -m build -wn
}
package() {
cd comictagger
python -m installer -d "$pkgdir" dist/*.whl
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
}