wok-current view xorg-randrproto/receipt @ rev 25698

Fix ntfs-3g receipt
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 19:01:01 2024 +0000 (2 months ago)
parents a23978bfa665
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-randrproto"
4 VERSION="1.6.0"
5 RVERSION="1.5.0"
6 CATEGORY="development"
7 SHORT_DESC="Randr extension headers."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="other"
10 WEB_SITE="https://www.x.org/wiki/"
12 SOURCE="randrproto"
13 TARBALL="$SOURCE-$RVERSION.tar.bz2"
14 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
16 DEPENDS="pkg-config xorg-renderproto"
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 1.6.0
31 # see https://build.opensuse.org/package/show/openSUSE:Leap:15.4/randrproto
32 patch -p1 < $stuff/randrproto-2018.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 rm -rf $fs/usr/share/doc
52 # Ensure remove .la files
53 find $fs -name "*.la" -delete
54 }