diff options
author | Luis Martinez | 2022-09-19 20:56:18 -0500 |
---|---|---|
committer | Luis Martinez | 2022-09-19 20:56:18 -0500 |
commit | 4bda1422778f8b8d1ba6e629e8f0ff820b558048 (patch) | |
tree | ae66a5aaee0f78160aed082a255a7c2d50d36614 /PKGBUILD | |
download | aur-wayqt-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4bb6820126f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> + +pkgname=wayqt-git +_pkg="${pkgname%-git}" +pkgver=r34.c296e49 +pkgrel=1 +pkgdesc='Qt-based wrapper for various Wayland protocols' +arch=('x86_64') +url='https://gitlab.com/desktop-frameworks/wayqt' +license=('MIT') +depends=('qt5-base' 'qt5-wayland' 'wayland' 'wayland-protocols' 'wlroots') +makedepends=('git' 'meson') +provides=("$_pkg" 'libwayqt.so') +conflicts=("$_pkg") +source=("$_pkg::git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkg" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + arch-meson "$_pkg" build + meson compile -C build +} + +package() { + meson install -C build --destdir="$pkgdir" + install -Dm644 "$_pkg/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/" +} |