summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41f662037e71cc5f197ff96fea582e44b21ec1eb (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: Maƫl Kerbiriou <m431.kerbiriou@gmail.com>

pkgname=swc-git
pkgver=r691.a7b6155
pkgrel=1
pkgdesc='A library for making a simple Wayland compositor'
arch=('i686' 'x86_64')
license=('MIT')
url='https://github.com/michaelforney/swc'
depends=('wayland-protocols' 'libinput' 'libxkbcommon' 'wld-git' 'xcb-util-wm')
optdepends=()
makedepends=('git')
provides=('swc')
conflicts=('swc')
source=('git+https://github.com/michaelforney/swc.git')
md5sums=('SKIP')

_gitname="swc"

# transitive dependencies:
# 'libswc' => 'libdrm' 'pixman' 'wayland'
# 'libinput' => 'systemd'(libudev.so)
# 'xcb-util-wm' => 'libxcb'

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

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

package() {
  cd "$srcdir/$_gitname"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  make PREFIX="/usr" DESTDIR="$pkgdir" install
}

# vim: set noet ff=unix: