wok-next annotate mmv/receipt @ rev 21481

updated airgeddon (8.12 -> 10.21)
author Hans-G?nter Theisgen
date Thu Jun 18 14:24:40 2020 +0100 (2020-06-18)
parents d43bf7aae921
children
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"
al@21020 10
llevrel@18832 11 TARBALL="${PACKAGE}_${VERSION%-*}.orig.tar.gz"
llevrel@18832 12 WGET_URL="http://http.debian.net/debian/pool/main/m/mmv/$TARBALL"
pascal@18930 13 EXTRA_SOURCE_FILES="${PACKAGE}_$VERSION.debian.tar.gz"
llevrel@18832 14
al@21020 15 compile_rules() {
al@20513 16 wget -O "$SRC/${PACKAGE}_$VERSION.debian.tar.gz" \
pascal@18930 17 http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz
al@20513 18 tar -xzf $SRC/${PACKAGE}_$VERSION.debian.tar.gz debian/patches/
llevrel@18832 19 cat debian/patches/series | while read file; do
llevrel@18832 20 patch -p1 < debian/patches/$file
llevrel@18832 21 done
llevrel@18832 22 sed -i '/^CFLAGS/s/=-O2/+=/; /^LDFLAGS/s/-N//' Makefile
llevrel@18832 23 mkdir -p $install/usr/bin $install/usr/share/man/man1
al@21020 24
al@21020 25 make &&
al@21020 26 make install || return 1
al@21020 27
llevrel@18832 28 cd $install/usr/bin
llevrel@18832 29 ln -s mmv mcp
llevrel@18832 30 ln -s mmv mad
llevrel@18832 31 ln -s mmv mln
llevrel@18832 32 }
llevrel@18832 33
al@21020 34 genpkg_rules() {
llevrel@18832 35 cp -a $install/* $fs
llevrel@18832 36 rm -r $fs/usr/share
llevrel@18832 37 }