summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 944d74a294a62002e0ee1e653d2d5ca405195e1c (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
# Maintainer: DaarkWel <daarkwel at mail dot ru>
pkgname=fb2edit
pkgver=20220809
pkgrel=1
pkgdesc="FB2 ebooks editor, qt5 version"
arch=('i686' 'x86_64')
url="https://github.com/lintest/fb2edit"
license=('GPL3')
depends=('qt5-webkit' 'qt5-xmlpatterns' 'qt5-imageformats' 'qt5-translations' 'hicolor-icon-theme')
makedepends=('git' 'cmake' 'qt5-tools')

_gitname=fb2edit

source=("git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

build() {
	cd "${_gitname}"
	mkdir -p build
	cd "build"
	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
	make
}

package() {
	cd "${_gitname}/build"
	make DESTDIR="${pkgdir}" install
}