summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 701bf941a227c97fd6f83d15655d40274d015839 (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
# Maintainer: Nahuel Gomez Castro <nahual_gomca@outlook.com.ar>
# Contributor: Carlos Mogas da Silva <r3pek@r3pek.org>
# Contributor: ELmoussaoui Bilal <bil.elmoussaoui@gmail.com>

pkgname='budgie-screenshot-applet'
pkgver='0.4.3.r0.gd92b06c'
pkgrel='2'
pkgdesc='A Budgie applet for taking and uploading screenshots to Imgur and Imagebin.'
arch=('i686' 'x86_64')
url="https://github.com/cybre/${pkgname}"
license=('GPL2')
depends=('libpeas' 'budgie-desktop' 'json-glib' 'gnome-desktop')
makedepends=('intltool' 'meson' 'ninja' 'vala' 'gobject-introspection')
source=("git+${url}.git#tag=v${pkgver:0:5}")
sha256sums=('SKIP')
changelog='CHANGELOG'

pkgver () {
  cd ${pkgname}

  git describe --long --tags | sed 's/v//; s/-/.r/; s/-/./'
}

prepare () {
  cd ${pkgname}

  git cherry-pick -n 1886d97 # Fix GTK+3.24 compilation issues
  git cherry-pick -n 0e0c582 # Fixes compilation errors with Vala 0.44
}

build () {
  arch-meson ${pkgname} build
  ninja -C build
}

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