summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af28da4a4bc5900dff8d9a9bccb705860cee0ed0 (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
40
41
42
43
pkgname=gnome-notes-git
_pkgname=gnome-notes
pkgver=40.0+6+g8491d75
pkgrel=1
pkgdesc="Write out notes, every detail matters"
url="https://wiki.gnome.org/Apps/Notes"
arch=(x86_64)
license=(GPL)
depends=('tracker3' 'webkit2gtk' 'gnome-online-accounts' 'evolution-data-server'
         'libhandy')
makedepends=('evolution' 'python' 'appstream-glib' 'yelp-tools' 'git' 'meson')
provides=("bijiben=$pkgver" 'gnome-notes')
conflicts=('bijiben' 'gnome-notes')
source=("git+https://gitlab.gnome.org/GNOME/gnome-notes.git"
        "git+https://gitlab.gnome.org/GNOME/libgd.git")
b2sums=('SKIP'
        'SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/^BIJIBEN_//;s/_/./g;s/-/+/g'
}

prepare() {
  cd $_pkgname

  git submodule init
  git submodule set-url subprojects/libgd "$srcdir/libgd"
  git submodule update
}

build() {
  arch-meson $_pkgname build -D update_mimedb=false
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}