summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 739c451bde7ca1350b033e39130777a771740594 (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
# Maintainer: nblock <nblock [/at\] archlinux DOT us>
# Contributor: xduugu

pkgname=baralga
_pkgname=${pkgname/b/B}
pkgver=1.9.9
pkgrel=2
pkgdesc="A simple and lightweight time tracking solution for freelancers and consultants"
arch=('any')
url="http://baralga.github.com"
license=('Apache-2.0')
depends=('java-runtime')
options=(emptydirs)
source=(
    https://github.com/${_pkgname}/${pkgname}/releases/download/v${pkgver}/${_pkgname}-Portable-v${pkgver}.zip
    https://raw.githubusercontent.com/Baralga/baralga/75abd5050a7fe3538f896960b109c36a69eeec43/documents/images/Baralga-Icon_32.png
    https://raw.githubusercontent.com/Baralga/baralga/75abd5050a7fe3538f896960b109c36a69eeec43/documents/images/Baralga-Icon_64.png
    baralga.desktop
)
sha512sums=(
    'a3531a80ce539b11046ce7ada031ba9612ff6c8ccb1bb898df4a3ed8efb56d6a1c7e66db09c64a5579c45cc26d890cb7a04a89fb55ab8335885db28d253de228'
    'SKIP'
    'SKIP'
    'SKIP'
)

package() {
	cd "${srcdir}/${_pkgname}-v${pkgver//_/-}"

	mkdir -p "${pkgdir}/usr/bin"
	install -d "${pkgdir}/usr/share/${pkgname}/"{lib,data}
	install -m644 "${_pkgname}-v${pkgver//_/-}.jar" "${pkgdir}/usr/share/${pkgname}/${pkgname}.jar"
	#ignore contents of data/ for now ...

	mkdir -p "${pkgdir}/usr/share/icons/hicolor/"{32x32,64x64}"/apps/"
	install -m644 "${srcdir}/Baralga-Icon_32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/baralga.png"
	install -m644 "${srcdir}/Baralga-Icon_64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/baralga.png"

	mkdir -p "${pkgdir}/usr/share/doc/baralga/"
	install -m644 "Licence.txt" "${pkgdir}/usr/share/doc/baralga/"

	mkdir -p "${pkgdir}/usr/share/applications/"
	install -m644 "${srcdir}/baralga.desktop" "${pkgdir}/usr/share/applications/"

	#create startup file
	echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
	echo "exec \$JAVA_HOME/bin/java -jar /usr/share/${pkgname}/${pkgname}.jar \$@" >> ${pkgdir}/usr/bin/${pkgname}
	chmod +x ${pkgdir}/usr/bin/${pkgname}
}

# vim:set ts=2 sw=2 noet: