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

pkgname=waylib-git
pkgver=0.2.0.alpha1.r24.g06aaad1
pkgrel=1
pkgdesc='A wrapper for wlroots based on Qt.'
arch=('x86_64' 'aarch64')
url="https://github.com/vioken/waylib"
license=('Apache' 'GPL2' 'GPL3' 'LGPL3')
depends=()
makedepends=('git' 'qwlroots' 'ninja')
provides=('waylib')
source=("git+https://github.com/vioken/waylib")
sha512sums=('SKIP')

pkgver() {
  cd waylib
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd waylib
  cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  cd waylib/build
  DESTDIR="$pkgdir" ninja install
}