wok-current view weston/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 7c0170dd3ecc
children
line source
1 # SliTaz package receipt.
3 PACKAGE="weston"
4 VERSION="1.4.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Reference implementation of a Wayland compositor."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://wayland.freedesktop.org/"
11 WGET_URL="https://wayland.freedesktop.org/releases/$TARBALL"
13 DEPENDS="wayland mesa-wayland cairo-gl libxkbcommon libunwind mtdev \
14 xorg-libXcursor pam liblzma"
15 BUILD_DEPENDS="wayland-dev mesa-wayland-dev cairo-gl-dev libxkbcommon-dev \
16 libunwind-dev mtdev-dev xorg-libXcursor-dev pam-dev liblzma-dev \
17 gegl-dev libdrm-dev xorg-libXxf86vm-dev udev-dev pkg-config jpeg-dev file"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - 'https://gitlab.freedesktop.org/wayland/weston/-/tags?sort=updated_desc' 2>/dev/null | \
23 sed '/item-title/!d;s|.*">||;s|<.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|git-version.h : .FORCE|git-version.h :|' src/Makefile*
30 ./configure \
31 --prefix=/usr \
32 --libexec=/usr/lib/weston \
33 --disable-documentation \
34 --enable-fbdev-compositor &&
35 make && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib/weston $fs/usr/share
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/weston/*.so* $fs/usr/lib/weston
44 cp -a $install/usr/lib/weston/weston-* $fs/usr/lib/weston
45 cp -a $install/usr/share/weston $fs/usr/share
46 # Custom weston-session
47 cp -f $stuff/weston-session $fs/usr/bin
48 }