summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 618066cfc22daf11071dee6eb95251022da439ff (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
# Maintainer: Adria Arrufat <adria.arrufat+AUR@protonmail.ch>

_pkgname=recipes
pkgname=$_pkgname-git
pkgver=2.0.2+24+gaa4a7e7
pkgrel=1
pkgdesc="A GNOME recipes cooking book"
arch=(i686 x86_64)
license=(GPL)
depends=(gtk3 gnome-autoar gspell libcanberra)
makedepends=(gnome-doc-utils git meson itstool)
groups=(gnome)
url="https://git.gnome.org/browse/recipes/"
replaces=(recipes)
provides=(recipes)
conflicts=(recipes)
source=("git+https://gitlab.gnome.org/GNOME/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --always | sed 's/-/+/g'
}

prepare() {
  cd $_pkgname
  git submodule init
  git submodule update
}

build() {
  cd $_pkgname
  [ -d build ] && rm -rf build
  meson build --prefix=/usr --buildtype=release
  ninja -C build
}

package() {
  cd $_pkgname
  DESTDIR=${pkgdir} ninja -C build install
}