commit 193462fafb3a2d2329c7dd290274d604623a1a99 Author: xhaa123 Date: Mon Apr 15 22:30:38 2024 +0800 wayland-protocols 1.34-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3edc397 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=wayland-protocols +pkgver=1.34 +pkgrel=1 +pkgdesc="Specifications of extended Wayland protocols" +arch=('x86_64') +url='https://wayland.freedesktop.org/' +license=('MIT') +depends=('wayland') +makedepends=('meson' 'ninja') +source=(https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/${pkgver}/downloads/${pkgname}-${pkgver}.tar.xz) +sha256sums=(c59b27cacd85f60baf4ee5f80df5c0d15760ead6a2432b00ab7e2e0574dcafeb) + +build() { + cd ${pkgname}-${pkgver} + + meson setup build \ + --prefix=/usr \ + --buildtype=release \ + -Dlibdir=/usr/lib64 + + meson compile -C build +} + +package() { + cd ${pkgname}-${pkgver} + + meson install -C build --destdir ${pkgdir} +}