summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45f027d5bac6c9ab518a2ad613a23a5ab88d938c (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
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=assetfolio-git
pkgver=V1.2.r1.g03b2a92
pkgrel=1
pkgdesc="An All-in-One Asset Tracker and Watchlist Application that keeps your asset data private"
arch=('x86_64')
url='https://gitlab.com/ywiyogo/assetfolio'
license=('GPL3')
depends=('qt5-charts')
makedepends=('qt5-charts')
source=("${pkgname%-git}::git+https://gitlab.com/ywiyogo/assetfolio")
sha256sums=('SKIP')

pkgver() {
  cd assetfolio
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd assetfolio
  mkdir -p build/
  git submodule update --init --recursive
}

build() {
  cd assetfolio/build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd assetfolio/build
  make DESTDIR="${pkgdir}" install
  install -d "${pkgdir}/usr/share/applications"
  mv "${pkgdir}/usr/AssetFolio.desktop" "${pkgdir}/usr/share/applications/"
}