wok-current view xorg-presentproto/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago)
parents 3ad63c8fc2f9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-presentproto"
4 VERSION="1.2"
5 RVERSION="1.1"
6 CATEGORY="development"
7 SHORT_DESC="Present extension headers."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="other"
10 WEB_SITE="https://www.x.org/wiki/"
12 SOURCE="presentproto"
13 TARBALL="$SOURCE-$RVERSION.tar.bz2"
14 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
16 DEPENDS="pkg-config xorg-util-macros"
17 BUILD_DEPENDS="xorg-util-macros"
19 HOST_ARCH="i486 x86_64"
21 current_version()
22 {
23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
24 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Patch to bump 1.2
31 # see https://build.opensuse.org/package/show/openSUSE:Leap:15.4/presentproto
32 patch -p1 < $stuff/presentproto-2018.4.patch
34 ./configure \
35 --sysconfdir=/etc \
36 --localstatedir=/var \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/* $fs
46 rm -rf $fs/usr/share
48 # Ensure remove .la files
49 find $fs -name "*.la" -delete
50 }