summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ba43f51a2aba47213da6cf1f50977ad92b21e59 (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
42
# Maintainer: Ruben De Smet <me at rubdos dot be>

pkgname=orbment-wall-git
_gitname=orbment-wall
pkgver=r33.8bb4672
pkgrel=1
pkgdesc="Orbment plugins for Wayland Wall protocols"
arch=('i686' 'x86_64')
url="https://github.com/wayland-wall/orbment-wall"
license=('MIT')
depends=('wayland-wall' 'wayland-protocols' 'orbment')
makedepends=('git')
provides=('orbment-wall' 'orbment-wall-git')
conflicts=('orbment-wall')
source=("git+https://github.com/wayland-wall/orbment-wall.git#branch=wip/injector")
md5sums=('SKIP')

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

prepare() {
  cd "$srcdir/$_gitname"
  git submodule update --init
  autoreconf --install

  ./configure \
      --prefix=/usr
}

build() {
  cd "$srcdir/$_gitname"
  make
}

package() {
  cd "$srcdir/$_gitname"
  make install install-man DESTDIR="$pkgdir"

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/orbment-wall-git/COPYING"
}