summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD47
1 files changed, 21 insertions, 26 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 357d9e0676d..961ed1ce455 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,41 @@
-# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
+# Contributor: Maxime Gauduin <alucryd@archlinux.org>
pkgname=pantheon-camera-git
-pkgver=r547.3494a05
+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=('appstream' 'clutter' 'clutter-gst' 'clutter-gtk' 'glib2' 'glibc'
- 'gstreamer' 'gtk3' 'libcanberra'
- 'libgranite.so')
-makedepends=('git' 'granite-git' 'intltool' 'meson' 'vala')
-provides=('pantheon-camera')
-conflicts=('pantheon-camera')
-source=('pantheon-camera::git+https://github.com/elementary/camera.git')
+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 pantheon-camera
-
- echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+ cd "${pkgname%-git}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
+ cd "${pkgname%-git}"
+ [[ -d build ]] || mkdir build
}
build() {
- cd build
+ cd "${pkgname%-git}/build"
- arch-meson ../pantheon-camera
+ arch-meson ..
ninja
}
package() {
- cd build
+ cd "${pkgname%-git}/build"
DESTDIR="${pkgdir}" ninja install
}
-
-# vim: ts=2 sw=2 et: