wok annotate xorg-gccmakedep/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 467e02d441f4
children
rev   line source
pascal@3530 1 # SliTaz package receipt.
pascal@3530 2
pascal@3530 3 PACKAGE="xorg-gccmakedep"
Hans-G?nter@22190 4 VERSION="1.0.3"
pascal@3530 5 CATEGORY="x-window"
pascal@3530 6 SHORT_DESC="X gccmakedep utility."
pascal@3530 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="MIT"
Hans-G?nter@22190 9 WEB_SITE="https://www.x.org/"
Hans-G?nter@22190 10
pascal@3530 11 SOURCE="gccmakedep"
gokhlayeh@6993 12 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@3530 13 WGET_URL="$XORG_MIRROR/util/$TARBALL"
pascal@3530 14
pascal@15579 15 BUILD_DEPENDS="xorg-dev-proto"
pascal@15579 16
pascal@24072 17 current_version()
pascal@24072 18 {
pascal@24072 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 20 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 21 }
pascal@24072 22
pascal@3530 23 # Rules to configure and make the package.
pascal@3530 24 compile_rules()
pascal@3530 25 {
Hans-G?nter@22190 26 ./configure \
Hans-G?nter@22190 27 --prefix=/usr \
Hans-G?nter@22190 28 --mandir=/usr/share/man \
Hans-G?nter@22190 29 $CONFIGURE_ARGS &&
Hans-G?nter@22190 30 make &&
pascal@15579 31 make DESTDIR=$DESTDIR install
Hans-G?nter@22190 32
pascal@15579 33 chmod +x $DESTDIR/usr/bin/*
pascal@3530 34 }
pascal@3530 35
pascal@3530 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3530 37 genpkg_rules()
pascal@3530 38 {
pascal@3530 39 mkdir -p $fs/usr
pascal@15579 40 cp -a $install/usr/bin $fs/usr
pascal@3530 41 }