52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=wayland-protocols
|
|
pkgver=1.25
|
|
pkgrel=01
|
|
pkgdesc='Specifications of extended Wayland protocols'
|
|
arch=('any')
|
|
url='https://wayland.freedesktop.org/'
|
|
makedepends=('wayland' 'meson' 'ninja')
|
|
source=("https://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"{,.sig})
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
# apply patch from the source array (should be a pacman feature)
|
|
local src
|
|
for src in "${source[@]}"; do
|
|
src="${src%%::*}"
|
|
src="${src##*/}"
|
|
[[ $src = *.patch ]] || continue
|
|
echo "Applying patch $src..."
|
|
patch -Np1 < "../$src"
|
|
done
|
|
}
|
|
|
|
build() {
|
|
meson build $pkgname-$pkgver --buildtype=release --prefix=/usr
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
ninja -C build test
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" ninja -C build install
|
|
set -x
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m 644 "$pkgname-$pkgver/COPYING"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('MIT')
|
|
|
|
validpgpkeys=('8307C0A224BABDA1BABD0EB9A6EEEC9E0136164A' # Jonas Ådahl
|
|
'A66D805F7C9329B4C5D82767CCC4F07FAC641EFF') # Daniel Stone
|
|
|
|
sha256sums=(f1ff0f7199d0a0da337217dd8c99979967808dc37731a1e759e822b75b571460 # wayland-protocols-1.25.tar.xz
|
|
5bda0debbaf77ccf4841171f9bcbe9cf562c58d768f3a0cf5199a14e2fbd6176) # wayland-protocols-1.25.tar.xz.sig
|