summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67257b7e5c24d836c08813197c2c1367f75ab6dd (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
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: Philip Goto <philip.goto@gmail.com>

pkgname=nostalgia-git
_pkgname="${pkgname%-*}"
pkgver=0.11.r1.g7b58a7e
pkgrel=1
pkgdesc='Set historic GNOME wallpapers'
arch=('x86_64' 'aarch64')
url='https://gitlab.gnome.org/bertob/nostalgia'
license=('GPL-3.0-or-later')
provides=('nostalgia')
conflicts=('nostalgia')
depends=('gtk4' 'libadwaita' 'libportal' 'libportal-gtk4')
makedepends=('git' 'gobject-introspection' 'meson' 'vala')
source=("git+${url}.git")
b2sums=('SKIP')

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

build() {
  arch-meson --prefix /usr "${_pkgname}" build
  meson compile -C build
}

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

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