wok-current view xorg-presentproto/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | a23978bfa665 |
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 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Patch to bump 1.2
29 # see https://build.opensuse.org/package/show/openSUSE:Leap:15.4/presentproto
30 patch -p1 < $stuff/presentproto-2018.4.patch
32 ./configure \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 rm -rf $fs/usr/share
46 # Ensure remove .la files
47 find $fs -name "*.la" -delete
48 }