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