wok annotate mmv/receipt @ rev 24949

updated nagios-nsca (2.9.2 -> 2.10.1)
author Hans-G?nter Theisgen
date Fri Apr 22 17:54:28 2022 +0100 (2022-04-22)
parents a77b556923e9
children b70ccaef1b57
rev   line source
llevrel@18832 1 # SliTaz package receipt.
llevrel@18832 2
llevrel@18832 3 PACKAGE="mmv"
llevrel@18832 4 VERSION="1.01b-18"
llevrel@18832 5 CATEGORY="system-tools"
llevrel@18832 6 SHORT_DESC="Move, copy, append, or link multiple files in one command"
llevrel@18832 7 MAINTAINER="Lucas Levrel <llev@slitaz.org>"
llevrel@18832 8 LICENSE="GPL"
llevrel@18832 9 WEB_SITE="https://packages.debian.org/sid/mmv"
llevrel@18832 10 TARBALL="${PACKAGE}_${VERSION%-*}.orig.tar.gz"
llevrel@18832 11 WGET_URL="http://http.debian.net/debian/pool/main/m/mmv/$TARBALL"
pascal@18930 12 EXTRA_SOURCE_FILES="${PACKAGE}_$VERSION.debian.tar.gz"
llevrel@18832 13
llevrel@18832 14 DEPENDS=""
llevrel@18832 15 BUILD_DEPENDS=""
llevrel@18832 16
pascal@24419 17 # What is the latest version available today?
pascal@24419 18 current_version()
pascal@24419 19 {
pascal@24419 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24419 21 sed "/latest/d;/${PACKAGE}_/!d;/debian/!d;s|.*${PACKAGE}_\\(.*\\).debian.*\".*|\\1|" | sort -Vr | sed q
pascal@24419 22 }
pascal@24419 23
llevrel@18832 24 # Rules to configure and make the package.
llevrel@18832 25 compile_rules()
llevrel@18832 26 {
pascal@18930 27 wget -O "$SOURCES_REPOSITORY/${PACKAGE}_$VERSION.debian.tar.gz" \
pascal@18930 28 http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz
pascal@18930 29 tar -xzf $SOURCES_REPOSITORY/${PACKAGE}_$VERSION.debian.tar.gz debian/patches/
llevrel@18832 30 cat debian/patches/series | while read file; do
llevrel@18832 31 patch -p1 < debian/patches/$file
llevrel@18832 32 done
llevrel@18832 33 sed -i '/^CFLAGS/s/=-O2/+=/; /^LDFLAGS/s/-N//' Makefile
llevrel@18832 34 mkdir -p $install/usr/bin $install/usr/share/man/man1
llevrel@18832 35 make && make install
llevrel@18832 36 cd $install/usr/bin
llevrel@18832 37 ln -s mmv mcp
llevrel@18832 38 ln -s mmv mad
llevrel@18832 39 ln -s mmv mln
llevrel@18832 40 }
llevrel@18832 41
llevrel@18832 42 # Rules to gen a SliTaz package suitable for Tazpkg.
llevrel@18832 43 genpkg_rules()
llevrel@18832 44 {
llevrel@18832 45 cp -a $install/* $fs
llevrel@18832 46 rm -r $fs/usr/share
llevrel@18832 47 }