wok-current view wayland/receipt @ rev 25713
Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:35:21 2024 +0000 (2 months ago) |
parents | f15be612c035 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="wayland"
4 VERSION="1.22.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 gcc-lib-base libffi"
17 BUILD_DEPENDS="expat-dev gcc 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 meson _build \
37 -D documentation=false \
38 --buildtype=release \
39 --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 }