summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d3c5259d009822e730604897c8fbbbe01e4ebe5 (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: Que Quotion <quequotion@bugmenot.com> 
# Contributor: <shlomochoina@gmail.com> 

pkgname=pantheon-dock-instctl-git
pkgver=r2228.53b31966
pkgrel=1
pkgdesc='The Pantheon Dock (with instance controls)'
arch=('i686' 'x86_64')
url='https://www.reddit.com/r/elementaryos/comments/irt66g/instance_controls_close_switch_to_or_minimize/'
license=('GPL3')
groups=('pantheon-qq')
depends=('bamf' 'gnome-menus' 'libgee' libgranite.so 'python')
makedepends=('git' gnome-{common,menus} 'libdbusmenu-gtk3' 'granite' 'meson' 'vala')
conflicts=('plank' 'pantheon-dock')
provides=('plank' 'pantheon-dock')
source=('pantheon-dock::git+https://github.com/elementary/dock#branch=master'
        'instance-controls.patch')

sha256sums=('SKIP'
            '8aef381cd636d8c958e5d29ce1b053fa3ef8f961768654c34fd80939b96b3fc3')

pkgver() {
  cd pantheon-dock

   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd pantheon-dock

  # https://github.com/elementary/dock/pull/73
  patch -Np1 < ../instance-controls.patch
}

build() {
  arch-meson pantheon-dock build -Denable-apport=false -Denable-dbusmenu=yes -Denable-barriers=yes
  ninja -C build
}
package() {
  DESTDIR="${pkgdir}" ninja -C build install
}