summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7bca93ab0ce7f37fec8540275826ca29a2a0abf5 (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
# Maintainer: asm0dey <pavel.finkelshtein+AUR@gmail.com>
pkgname=feedreader-git
pkgver=2.9.2.r2884
pkgrel=1
pkgdesc="FeedReader is a modern desktop application designed to complement existing web-based RSS accounts."
arch=('i686' 'x86_64')
url="https://github.com/jangernert/FeedReader"
license=('GPL3')
groups=()
depends=('sqlite3' 'gtk3' 'webkit2gtk' 'libnotify' 'libsoup' 'libgee' 'json-glib' 'libsecret' 'libpeas' 'gnome-online-accounts' 'curl' 'gumbo-parser' 'gnome-keyring')
makedepends=('git' 'vala' 'gobject-introspection' 'meson')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=('git+https://github.com/jangernert/FeedReader.git')
sha256sums=('SKIP')

# Upstream tags point releases in a "stable" branch, so these are not reachable from master.
# Therefore, we use the "no tags" version, but manually prepended by the latest stable.
pkgver() {
  cd "$srcdir/FeedReader"
  printf "%s.r%s" $(git tag | tail -n1 | sed 's/^v//') "$(git rev-list --count HEAD)"
}

prepare() {
  cd "$srcdir/FeedReader"
  git submodule init; git submodule update
}

build() {
  mkdir -p "$srcdir/FeedReader/build"
  cd "$srcdir/FeedReader/build"
  arch-meson -Db_pie=false
  ninja
}

package() {
  cd "$srcdir/FeedReader/build"
  DESTDIR="${pkgdir}" ninja install
}