comictagger/PKGBUILD

49 lines
1.2 KiB
Bash
Raw Normal View History

2020-11-28 16:25:19 +01:00
# Maintainer: loathingkernel <loathingkernel _a_ gmail _d_ com>
pkgname=comictagger
2022-04-14 17:28:38 +02:00
pkgver=1.3.2.alpha.4
2020-11-28 16:25:19 +01:00
pkgrel=1
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)
2021-01-20 16:01:13 +01:00
makedepends=('git' 'python-setuptools')
2020-11-28 16:25:19 +01:00
depends=('python'
'python-beautifulsoup4'
'python-natsort'
'python-pillow'
2021-01-20 16:01:13 +01:00
'python-requests'
2022-04-14 17:28:38 +02:00
'python-pycountry'
'python-py7zr'
2021-01-20 16:01:13 +01:00
'python-unrar-cffi'
2020-11-28 16:25:19 +01:00
'python-pyqt5'
2022-04-14 17:28:38 +02:00
'python-pybcj'
2021-01-20 16:01:13 +01:00
)
2022-04-14 17:28:38 +02:00
_tag=1.3.2-alpha.4
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
python setup.py build
}
package() {
cd comictagger
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
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
}