summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8dad14822f6aca7eea5419ba2595249cb87c386e (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
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname='simple-stocks'
pkgname="${_pkgname}-git"
pkgver=1.0.8.r2.g9b4be86
pkgrel=1
pkgdesc='Keep tabs on your favorite stocks'
arch=('x86_64')
url='https://github.com/brendanperry/stocks'
license=('GPL3')
depends=('granite')
makedepends=('git' 'meson' 'vala')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  git -C "${_pkgname}" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson "${_pkgname}" 'build'
  meson compile -C 'build'
}

package() {
  DESTDIR="${pkgdir}" meson install -C 'build'
  install -Dvm644 "${_pkgname}/README.md" -t "${pkgdir}/usr/share/doc/${_pkgname}"
}

# vim: ts=2 sw=2 et: