wok-current view xorg-inputproto/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-inputproto"
4 VERSION="2.4"
5 RVERSION="2.3.2"
6 CATEGORY="development"
7 SHORT_DESC="Input extension headers."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="other"
10 WEB_SITE="https://www.x.org/wiki/"
12 SOURCE="inputproto"
13 TARBALL="$SOURCE-$RVERSION.tar.bz2"
14 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
16 DEPENDS="xorg-xproto pkg-config"
17 BUILD_DEPENDS="xorg-util-macros"
19 HOST_ARCH="i486 arm"
21 current_version()
22 {
23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
24 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # patch to bump 2.4
31 # see https://build.opensuse.org/package/show/openSUSE:Leap:15.5/inputproto
32 patch -p1 < $stuff/inputproto-2.4.patch
34 ./configure \
35 --sysconfdir=/etc \
36 --localstatedir=/var \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/licenses
47 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE.txt
48 cp -a $install/* $fs
50 # Ensure remove .la files
51 find $fs -name "*.la" -delete
52 }