diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 57 |
1 files changed, 23 insertions, 34 deletions
@@ -1,52 +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=r496.d040b1a +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' 'glib2' 'glibc' 'gstreamer' - 'gtk3' 'libcanberra' - 'libgranite.so') -makedepends=('cmake' 'git' 'granite-git' 'intltool' 'vala') -provides=('pantheon-camera') -conflicts=('pantheon-camera' 'snap-photobooth') -replaces=('snap-photobooth-bzr') -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() { - cd pantheon-camera - - if [[ -d build ]]; then - rm -rf build - fi - mkdir build + cd "${pkgname%-git}" + [[ -d build ]] || mkdir build } build() { - cd pantheon-camera/build + cd "${pkgname%-git}/build" - cmake .. \ - -DCMAKE_BUILD_TYPE='Release' \ - -DCMAKE_INSTALL_PREFIX='/usr' \ - -DGSETTINGS_COMPILE='FALSE' - make + arch-meson .. + ninja } package() { - cd pantheon-camera/build + cd "${pkgname%-git}/build" - make DESTDIR="${pkgdir}" install + DESTDIR="${pkgdir}" ninja install } - -# vim: ts=2 sw=2 et: |