wok-6.x view wayland/receipt @ rev 25443

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 03 09:28:15 2022 +0000 (2022-09-03)
parents bd7510903310
children
line source
1 # SliTaz package receipt.
3 PACKAGE="wayland"
4 VERSION="1.21.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Wayland simpler X display server protocol."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://wayland.freedesktop.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://gitlab.freedesktop.org/$PACKAGE/$PACKAGE/-/releases/$VERSION/downloads/$TARBALL"
14 # WARNING: wayland must be installed in chroot since build host
15 # wayland-scanner is used for cross compilation to ARM
16 DEPENDS="expat gcc83-lib-base libffi"
17 BUILD_DEPENDS="expat-dev gcc83 libffi-dev meson"
19 HOST_ARCH="i486 arm"
21 # Handle cross compilation
22 case "$ARCH" in
23 arm*) ARCH_ARGS="--disable-scanner" ;;
24 esac
26 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - 'https://gitlab.freedesktop.org/wayland/wayland/-/tags?sort=updated_desc' 2>/dev/null | \
30 sed '/item-title/!d;s|.*">||;s|<.*||;q'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 export CC=gcc-83
38 meson _build \
39 -D documentation=false \
40 --prefix=/usr &&
41 ninja -C _build &&
42 ninja -C _build install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 mkdir -p $fs/usr/share
51 [ -d "$install/usr/bin" ] &&
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/*.so* $fs/usr/lib
54 cp -a $install/usr/share/wayland $fs/usr/share
55 }