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

pkgname=qwlroots-git
pkgver=r166.093e076
pkgrel=1
pkgdesc='Qt and QML bindings for wlroots.'
arch=('x86_64' 'aarch64')
url="https://github.com/vioken/qwlroots"
license=('Apache' 'GPL2' 'GPL3' 'LGPL3')
depends=()
makedepends=('git' 'wlroots-git')
source=("$pkgname::git+https://github.com/vioken/qwlroots")
sha512sums=('SKIP')

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

build() {
  cd $pkgname
  cmake -B . -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd $pkgname
  DESTDIR="$pkgdir" make install
}