wok-current view wayland/receipt @ rev 24966
updated nettle and nettle-dev (3.5.1 -> 3.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 25 07:28:45 2022 +0100 (2022-04-25) |
parents | 351577bd7833 |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wayland"
4 VERSION="1.4.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Wayland simpler X display server protocol."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 # WARNING: wayland must be installed in chroot since build host
15 # wayland-scanner is used for cross compilation to ARM
16 DEPENDS="libffi expat"
17 BUILD_DEPENDS="libffi-dev expat-dev"
19 # Handle cross compilation
20 case "$ARCH" in
21 arm*) ARCH_ARGS="--disable-scanner" ;;
22 esac
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - 'https://gitlab.freedesktop.org/wayland/wayland/-/tags?sort=updated_desc' 2>/dev/null | \
28 sed '/item-title/!d;s|.*">||;s|<.*||;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 ./configure \
35 --prefix=/usr \
36 --disable-documentation \
37 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib $fs/usr/share
45 [ -d "$install/usr/bin" ] && cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 cp -a $install/usr/share/wayland $fs/usr/share
48 }