summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22b39e8cebd1cccaf2abb830ea6c3a1bafe5c672 (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
# Maintainer: soloturn@gmail.com

_basename=libdecoration
pkgname="$_basename-git"
pkgver=r62.0c70968
pkgrel=1
pkgdesc="Help Wayland clients draw window decorations for them."
arch=('i686' 'x86_64')
url="https://gitlab.gnome.org/jadahl/libdecoration"
license=('MIT')
makedepends=('git' 'meson' 'ninja')
conflicts=("$_basename")
provides=("$_basename")

source=("git+https://gitlab.gnome.org/jadahl/$_basename.git")
sha1sums=('SKIP')

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

build() {
  pwd
  arch-meson $_basename build
  ninja -C build
}

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

# vim: ts=2 sw=2 et: