summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12b19326e964659994d348f8c8fd6581e6b44789 (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
# Maintainer:  kernel1024 <kernelonline at gmail dot com>

pkgname=qmanga-git
_pkgname=qmanga
pkgver=20200827.e054f5d
pkgrel=2
pkgdesc="Manga and book reader written with Qt"
arch=('i686' 'x86_64')
url="https://github.com/kernel1024/qmanga"
license=('GPL3')

depends=('qt5-base>=5.15.0' 'libzip' 'zlib' 'poppler>=0.83.0' 'tbb')
optdepends=('djvulibre: DJVU files support'
            'tesseract: OCR support')

makedepends=('git')
source=("git://github.com/kernel1024/qmanga.git")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    git log -1 --format='%cd.%h' --date=short | tr -d -
}

build () {
    cd "$srcdir/${_pkgname}"
    qmake-qt5
    make
}

package () {
    cd "$srcdir/${_pkgname}"
    make INSTALL_ROOT="${pkgdir}" install
}