summarylogtreecommitdiffstats
path: root/PKGBUILD.live
blob: fe929fd21e39d2f9d14e152c7e89a98c7b1e65e4 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: loathingkernel <loathingkernel _a_ gmail _d_ com>
# Maintainer: RealStickman <mrc+aur _a_ frm01 _d_ net>

pkgname=comictagger
pkgver=1.5.5
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
         python-appdirs
         python-beautifulsoup4
         python-importlib-metadata
         python-natsort
         python-pathvalidate
         python-pillow
         python-py7zr
         python-pycountry
         python-pyicu
         python-rapidfuzz
         python-requests
         python-text2digits
         python-typing_extensions
         python-wordninja
         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
}