summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b44b3eb235b4888a0591367ef30dd510773e8d0 (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
# Maintainer: Aria Moradi <aria.moradi007 at gmail dot com>
# Maintainer: Mahor Foruzesh <mahorforuzesh at protonmail dot com>

pkgname=tachidesk
pkgver=0.2.7.r312
pkgrel=1
pkgdesc="A free and open source manga reader that runs extensions built for Tachiyomi"
arch=("any")
url="https://github.com/Suwayomi/Tachidesk"
license=("MPL2")
depends=("java-runtime")
provides=("tachidesk")

_semver=$(printf ${pkgver} | cut -d'.' -f4 --complement)
_commits=$(printf ${pkgver} | cut -d'.' -f4)
_fetch_url="${url}/releases/download/v${_semver}/Tachidesk-v${_semver}-${_commits}.jar"

source=("${pkgname}-${pkgver}.jar::${_fetch_url}" 
		"${pkgname}.sh")
md5sums=('d05260628ffebe1f92c497f14d16043f'
         '196d4e69879d3b01f73672c812c0f20c')

package() {
	install -Dm755 "${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
	install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
}