# Maintainer: Michael Bauer # Contributor: Dimitris Kiziridis pkgname=rotki-bin pkgver=1.23.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') source=("${pkgname%-bin}-${pkgver}.tar.xz::https://github.com/rotki/rotki/releases/download/v${pkgver}/rotki-linux_x64-v${pkgver}.tar.xz" "rotki.png::https://github.com/rotki/rotki/raw/develop/frontend/app/src/assets/images/rotki_1024x1024.png" "LICENSE::https://github.com/rotki/rotki/raw/develop/LICENSE.md") sha256sums=('c3f9e261358bc035df864beef37e1a5bb2d9363f39b01854c9936eb74aee9c1f' '78032738ae55b065b3f786be0482809149f474a2294a6a2dfd26a079e9154383' '35135be6af418b326bdd426d3f4a268d181bea4e93aa49d51bde3f0b70c9d3ee') package() { install -d "${pkgdir}/opt/" "${pkgdir}/usr/bin" ln -s /opt/rotki/rotki "${pkgdir}/usr/bin" tar xvf ${pkgname%-bin}-${pkgver}.tar.xz -C "${pkgdir}/opt/" mv "${pkgdir}/opt/rotki"* "${pkgdir}/opt/rotki" convert rotki.png -resize 256x256 rotki256.png install -Dm644 rotki256.png "${pkgdir}/usr/share/pixmaps/rotki.png" install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" 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: