blob: 19ba018ed517d5e1e8de7dfe0f64c6c1821e0292 (
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
|
# Maintainer: Michael Bauer <michael@m-bauer.org>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=rotki-bin
pkgver=1.36.0
pkgrel=1
pkgdesc='A portfolio tracking, analytics, accounting and tax reporting application that respects your privacy'
arch=('x86_64')
url="https://rotki.com"
license=('BSD')
provides=('rotki')
options=('!strip')
noextract=("${pkgname%-bin}-${pkgver}.tar.xz")
depends=('gtk3'
'nss')
makedepends=('gendesk'
'imagemagick')
sourceprefix=${pkgname%-bin}-${pkgver}
source=("${sourceprefix}.tar.xz::https://github.com/rotki/rotki/releases/download/v${pkgver}/rotki-linux_x64-v${pkgver}.tar.xz"
"${sourceprefix}-rotki.png::https://raw.githubusercontent.com/rotki/rotki/v${pkgver}/frontend/app/public/assets/images/rotki_1024x1024.png"
"${sourceprefix}-LICENSE::https://github.com/rotki/rotki/raw/v${pkgver}/LICENSE.md")
sha256sums=('7147739469fad760cc1f140d97664fc0cdf4fbe8f8075c649e9ba82d71c027cc'
'391e4e2bfe352660a151b8f7143f8057ad43aafb256d4e3dfbf15546c3541270'
'eb6f58a98d8bdb6d3c8fee3817543589f3cd0921d14748fa0630edff2d4c08b0')
package() {
install -d "${pkgdir}/opt/" "${pkgdir}/usr/bin"
ln -s /opt/rotki/rotki "${pkgdir}/usr/bin"
tar xvf ${sourceprefix}.tar.xz -C "${pkgdir}/opt/"
mv "${pkgdir}/opt/rotki"* "${pkgdir}/opt/rotki"
magick ${sourceprefix}-rotki.png -resize 256x256 rotki256.png
install -Dm644 rotki256.png "${pkgdir}/usr/share/pixmaps/rotki.png"
install -Dm644 ${sourceprefix}-LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
gendesk -f -n --pkgname "${pkgname%-bin}" \
--pkgdesc "$pkgdesc" \
--name "Rotki" \
--comment "$pkgdesc" \
--exec "${pkgname%-bin}" \
--categories 'Utility;Office;Application' \
--icon "${pkgname%-bin}"
install -Dm644 ${pkgname%-bin}.desktop -t "${pkgdir}/usr/share/applications"
find "${pkgdir}/opt" -type f -exec chmod o-w {} +
find "${pkgdir}/opt" -type d -exec chmod o-w {} +
}
# vim:set ts=2 sw=2 et:
|