wok-current annotate 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 (7 months ago) |
parents | a23978bfa665 |
children |
rev | line source |
---|---|
pascal@18124 | 1 # SliTaz package receipt. |
pascal@18124 | 2 |
pascal@18124 | 3 PACKAGE="xorg-presentproto" |
shann@25634 | 4 VERSION="1.2" |
shann@25634 | 5 RVERSION="1.1" |
pascal@18124 | 6 CATEGORY="development" |
pascal@18124 | 7 SHORT_DESC="Present extension headers." |
pascal@18124 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18124 | 9 LICENSE="other" |
Hans-G?nter@22240 | 10 WEB_SITE="https://www.x.org/wiki/" |
Hans-G?nter@22240 | 11 |
pascal@18124 | 12 SOURCE="presentproto" |
shann@25634 | 13 TARBALL="$SOURCE-$RVERSION.tar.bz2" |
pascal@18124 | 14 WGET_URL="$XORG_MIRROR/proto/$TARBALL" |
pascal@18124 | 15 |
Hans-G?nter@22240 | 16 DEPENDS="pkg-config xorg-util-macros" |
pascal@18124 | 17 BUILD_DEPENDS="xorg-util-macros" |
pascal@18124 | 18 |
pascal@24072 | 19 current_version() |
pascal@24072 | 20 { |
pascal@24072 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 22 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 23 } |
pascal@24072 | 24 |
pascal@18124 | 25 # Rules to configure and make the package. |
pascal@18124 | 26 compile_rules() |
pascal@18124 | 27 { |
shann@25634 | 28 # Patch to bump 1.2 |
shann@25634 | 29 # see https://build.opensuse.org/package/show/openSUSE:Leap:15.4/presentproto |
shann@25634 | 30 patch -p1 < $stuff/presentproto-2018.4.patch |
shann@25634 | 31 |
Hans-G?nter@22240 | 32 ./configure \ |
Hans-G?nter@22240 | 33 --sysconfdir=/etc \ |
Hans-G?nter@22240 | 34 --localstatedir=/var \ |
pascal@18124 | 35 $CONFIGURE_ARGS && |
pascal@18124 | 36 make && |
pascal@18124 | 37 make install |
pascal@18124 | 38 } |
pascal@18124 | 39 |
pascal@18124 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18124 | 41 genpkg_rules() |
pascal@18124 | 42 { |
pascal@18124 | 43 cp -a $install/* $fs |
pascal@18124 | 44 rm -rf $fs/usr/share |
shann@25629 | 45 |
shann@25629 | 46 # Ensure remove .la files |
shann@25629 | 47 find $fs -name "*.la" -delete |
pascal@18124 | 48 } |