wok annotate xcb-proto/receipt @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (20 months ago)
parents 8b1267de9505
children
rev   line source
mallory@2684 1 # SliTaz package receipt.
mallory@2684 2
mallory@2684 3 PACKAGE="xcb-proto"
Hans-G?nter@23743 4 VERSION="1.14"
al@14604 5 CATEGORY="development"
Hans-G?nter@22154 6 SHORT_DESC="X protocol descriptions for XCB."
mallory@2684 7 MAINTAINER="mallory@sweetpeople.org"
al@14604 8 LICENSE="other"
pascal@20669 9 WEB_SITE="https://xcb.freedesktop.org/"
Hans-G?nter@22154 10
Hans-G?nter@23743 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@23743 12 WGET_URL="https://xorg.freedesktop.org/archive/individual/proto/$TARBALL"
Hans-G?nter@22154 13
Hans-G?nter@22154 14 DEPENDS="pkg-config python"
Hans-G?nter@22154 15 BUILD_DEPENDS="libxml2-tools python-dev"
Hans-G?nter@22154 16
pankso@15951 17 HOST_ARCH="i486 arm"
al@14604 18
pankso@15951 19 case "$ARCH" in
pankso@15951 20 arm) BUILD_DEPENDS="" ;;
pankso@15951 21 esac
pankso@15951 22
Hans-G?nter@23743 23 # @maintainer: Please update also: libxcb and libxcb-dev
Hans-G?nter@23743 24
pascal@24465 25 # What is the latest version available today?
pascal@24465 26 current_version()
pascal@24465 27 {
pascal@24465 28 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24465 29 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24465 30 }
pascal@24465 31
mallory@2684 32 # Rules to configure and make the package.
mallory@2684 33 compile_rules()
mallory@2684 34 {
Hans-G?nter@22154 35 ./configure \
Hans-G?nter@22154 36 --sysconfdir=/etc \
Hans-G?nter@22154 37 --localstatedir=/var \
mallory@2684 38 $CONFIGURE_ARGS &&
al@14604 39 make &&
al@14604 40 make install
mallory@2684 41 }
mallory@2684 42
mallory@2684 43 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2684 44 genpkg_rules()
mallory@2684 45 {
al@14604 46 mkdir -p $fs/usr/share/licenses
al@14604 47
Hans-G?nter@23743 48 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE.txt
Hans-G?nter@23743 49 cp -a $install/* $fs
Hans-G?nter@23743 50
Hans-G?nter@22154 51 # cook removes *.pyc *.pyo files by itself, but leaves them in files.list
al@14604 52 find $fs -name '*.py?' -delete
mallory@2684 53 }