summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd5bce6a7df9e230f2192ab5aabb6b48499b6a3a (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
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>

pkgname=pocketsmith-bin
_pkgname=pocketsmith
pkgdesc="Personal finance software with cash flow forecasts"
pkgver=0.1.2
pkgrel=1
arch=('i686' 'x86_64')
url='https://www.pocketsmith.com/'
license=('custom')
depends=('gconf' 'nss' 'alsa-lib' 'libxtst' 'gtk2' 'libxss')
options=(!strip !emptydirs)
source_i686=("https://d17qi61ltj6gb6.cloudfront.net/${pkgver}/${_pkgname}_${pkgver}_i386.deb")
source_x86_64=("https://d17qi61ltj6gb6.cloudfront.net/${pkgver}/${_pkgname}_${pkgver}_amd64.deb")
sha256sums_i686=('ea33a23d8b7f0cfcf12dfcd5893058057a4adf1b89e8a022cd606aecc58a3b22')
sha256sums_x86_64=('888f824b5e1245baf8f604e6066774c96891278cce5d9628a2bd918081edf262')

package() {
  bsdtar xf data.tar.xz -C "$pkgdir" 

  # fix directory permissions
  find "$pkgdir" -type d -exec chmod 755 "{}" +

  # move license to expected dir
  mkdir "$pkgdir/usr/share/licenses/"
  mv "$pkgdir/usr/share/doc/pocketsmith/" "$pkgdir/usr/share/licenses/pocketsmith-bin/"
}