summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 160387a59f1c85a2a0562ca1a5208b44bbdcc93c (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
# Maintainer: FFY00 <filipe.lains@gmail.cm>
pkgname=budgie-brightness-applet-git
_gitname=budgie-brightness-control-applet
pkgver=0.2.1.r0.2372b25
pkgrel=1
pkgdesc="Screen brightness applet for Budgie Desktop"
arch=('i686' 'x86_64')
url='https://github.com/ilgarmehmetali/budgie-brightness-control-applet'
license=('GPL2')
sha256sums=('SKIP')
provides=('budgie-brightness-applet')
conflicts=('budgie-brightness-applet')
depends=('libpeas' 'budgie-desktop' 'gnome-settings-daemon') 
makedepends=('gobject-introspection' 'meson' 'ninja' 'vala')
source=("git+${url}")

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

build() {
  mkdir -p "$srcdir"/$_gitname/build
  cd "$srcdir"/$_gitname/build

  meson .. \
    --prefix /usr \
    --buildtype=plain

  ninja
}

package() {
  cd "$srcdir"/$_gitname/build

  DESTDIR="$pkgdir" ninja install
}