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

pkgname=pantheon-camera-git
pkgver=1.0.6.r91.gf856989
pkgrel=1
pkgdesc="The Pantheon Camera Application"
arch=(x86_64)
url="https://github.com/elementary/camera"
license=(GPL3)
groups=(pantheon-unstable)
depends=(clutter clutter-gst clutter-gtk gstreamer
         gtk3 libcanberra libgranite.so libhandy)
makedepends=(git granite intltool meson vala appstream)
provides=(pantheon-camera)
conflicts=(pantheon-camera)
source=("pantheon-camera::git+https://github.com/elementary/camera.git")
sha256sums=('SKIP')

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

prepare() {
  cd "${pkgname%-git}"
  [[ -d build ]] || mkdir build
}

build() {
  cd "${pkgname%-git}/build"

  arch-meson ..
  ninja
}

package() {
  cd "${pkgname%-git}/build"

  DESTDIR="${pkgdir}" ninja install
}