wok-current annotate libxcb/receipt @ rev 24072
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 17:56:16 2021 +0000 (2021-07-07) |
parents | 9c0c1fdfe763 |
children | 5926178cd6fa |
rev | line source |
---|---|
mallory@2685 | 1 # SliTaz package receipt. |
mallory@2685 | 2 |
mallory@2685 | 3 PACKAGE="libxcb" |
Hans-G?nter@23743 | 4 VERSION="1.14" |
pankso@16194 | 5 ARM_VERSION="1.9.1" |
mallory@2685 | 6 CATEGORY="x-window" |
Hans-G?nter@22199 | 7 SHORT_DESC="A C binding to the X11 protocol." |
pankso@15969 | 8 MAINTAINER="pankso@slitaz.org" |
al@14595 | 9 LICENSE="other" |
pascal@20669 | 10 WEB_SITE="https://xcb.freedesktop.org/" |
Hans-G?nter@22199 | 11 |
Hans-G?nter@23745 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@14595 | 13 WGET_URL="${WEB_SITE}dist/$TARBALL" |
al@14595 | 14 |
al@14595 | 15 DEPENDS="glibc-base xorg-libXau xorg-libXdmcp" |
Hans-G?nter@22199 | 16 BUILD_DEPENDS="autoconf automake libtool libxslt-dev xcb-proto xorg-libXau-dev |
Hans-G?nter@22199 | 17 xorg-libXdmcp-dev" |
Hans-G?nter@22199 | 18 |
Hans-G?nter@22199 | 19 HOST_ARCH="i486 arm" |
mallory@2685 | 20 |
pascal@24072 | 21 current_version() |
pascal@24072 | 22 { |
pascal@24072 | 23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 24 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 25 } |
pascal@24072 | 26 |
pankso@16194 | 27 # Handle SliTaz arch |
pankso@16194 | 28 case "$SLITAZ_ARCH" in |
pankso@16194 | 29 arm*) VERSION="$ARM_VERSION" ;; |
pankso@16194 | 30 esac |
pankso@16194 | 31 |
pankso@15969 | 32 case "$ARCH" in |
pankso@16194 | 33 arm*) |
pankso@16021 | 34 # We need host xcb-proto libxslt-dev file installed |
pankso@16194 | 35 VERSION="$ARM_VERSION" |
pankso@16194 | 36 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@16194 | 37 WGET_URL="${WEB_SITE}dist/$TARBALL" |
pankso@16021 | 38 BUILD_DEPENDS="libxslt-dev xcb-proto xorg-libXau-dev xorg-libXdmcp-dev" ;; |
pankso@15969 | 39 esac |
pankso@15969 | 40 |
mallory@2685 | 41 # Rules to configure and make the package. |
mallory@2685 | 42 compile_rules() |
mallory@2685 | 43 { |
al@14595 | 44 # http://www.linuxfromscratch.org/blfs/view/svn/x/libxcb.html |
al@14595 | 45 sed -i "s|pthread-stubs||" $src/configure.ac && |
al@14604 | 46 autoreconf -fi && |
Hans-G?nter@22199 | 47 ./configure \ |
Hans-G?nter@22199 | 48 --enable-xinput \ |
Hans-G?nter@22199 | 49 --enable-xkb \ |
Hans-G?nter@22199 | 50 --disable-build-docs \ |
Hans-G?nter@22199 | 51 --disable-static \ |
mallory@2685 | 52 $CONFIGURE_ARGS && |
al@14595 | 53 make && |
al@14595 | 54 make DESTDIR=$DESTDIR install |
mallory@2685 | 55 } |
mallory@2685 | 56 |
mallory@2685 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2685 | 58 genpkg_rules() |
mallory@2685 | 59 { |
Hans-G?nter@22199 | 60 mkdir -p $fs/usr/lib |
Hans-G?nter@22199 | 61 mkdir -p $fs/usr/share/licenses |
Hans-G?nter@22199 | 62 |
Hans-G?nter@22199 | 63 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22199 | 64 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE.txt |
mallory@2685 | 65 } |