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