summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5f50d44314bd806c6211932819c6c6e7d2b12fb (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: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: gaelic

pkgname=shotwell-git
pkgver=0.31.3.r143.g5e21249f
pkgrel=1
pkgdesc="A digital photo organizer designed for the GNOME desktop environment"
arch=(x86_64)
url="https://wiki.gnome.org/Apps/Shotwell"
license=(LGPL2.1)
depends=(libgee libgexiv2 libraw libgdata libgphoto2)
makedepends=(git vala meson ninja itstool)
provides=(shotwell)
conflicts=(shotwell)
source=("git+https://gitlab.gnome.org/GNOME/shotwell.git")
sha256sums=('SKIP')

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

build() {
  cd "${srcdir}/${pkgname%-git}"
  arch-meson -D unity_support=false build
  ninja -C build
}

package() {
  cd "${srcdir}/${pkgname%-git}"
  DESTDIR="${pkgdir}" meson install -C build
}