summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b590b9bea28a50f39ef49414d022e71f56ed4eb8 (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
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
# Contributor: Johan Förberg <johan@forberg.se>

pkgname=calibre-plugin-kobo-driver-git
_reponame='calibre-kobo-driver'
pkgver=3.6.11.r0.g327f809
pkgrel=1
pkgdesc='An extension of the existing KoboTouch driver provided with Calibre'
arch=(any)
url="https://github.com/jgoguen/${_reponame}"
license=('GPL-3.0-only')
depends=('calibre')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
makedepends=(python zip git)
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  git -C "${_reponame}" describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${_reponame}"

	scripts/build.sh
}

package() {
	cd "${_reponame}"

	install -m644 -D  -t "$pkgdir/usr/share/calibre/system-plugins" \
		'KePub Input.zip' \
		'KePub Metadata Reader.zip' \
		'KePub Metadata Writer.zip' \
		'KePub Output.zip' \
		'KoboTouchExtended.zip'
}