wok rev 18832

Add mmv (move/copy/append/link multiple files)
author Lucas Levrel <llevrel@yahoo.fr>
date Mon Jan 18 21:43:09 2016 +0100 (2016-01-18)
parents 4ba93d7db933
children 525a69321a25
files mmv/description.txt mmv/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mmv/description.txt	Mon Jan 18 21:43:09 2016 +0100
     1.3 @@ -0,0 +1,8 @@
     1.4 +This is mmv, a program to move/copy/append/link multiple files according to a
     1.5 +set of wildcard patterns. All csh wildcards ('*', '?', '['...']', and '~') are
     1.6 +supported. This multiple action is performed safely, i.e. without any
     1.7 +unexpected deletion of files due to collisions of target names with existing
     1.8 +filenames or with other target names. Furthermore, before doing anything, mmv
     1.9 +attempts to detect any errors that would result from the entire set of actions
    1.10 +specified and gives the user the choice of either aborting before beginning, or
    1.11 +proceeding by avoiding the offending parts.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mmv/receipt	Mon Jan 18 21:43:09 2016 +0100
     2.3 @@ -0,0 +1,38 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="mmv"
     2.7 +VERSION="1.01b-18"
     2.8 +CATEGORY="system-tools"
     2.9 +SHORT_DESC="Move, copy, append, or link multiple files in one command"
    2.10 +MAINTAINER="Lucas Levrel <llev@slitaz.org>"
    2.11 +LICENSE="GPL"
    2.12 +WEB_SITE="https://packages.debian.org/sid/mmv"
    2.13 +TARBALL="${PACKAGE}_${VERSION%-*}.orig.tar.gz"
    2.14 +WGET_URL="http://http.debian.net/debian/pool/main/m/mmv/$TARBALL"
    2.15 +
    2.16 +DEPENDS=""
    2.17 +BUILD_DEPENDS=""
    2.18 +
    2.19 +# Rules to configure and make the package.
    2.20 +compile_rules()
    2.21 +{
    2.22 +	wget http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz
    2.23 +	tar -xzf ${PACKAGE}_$VERSION.debian.tar.gz debian/patches/
    2.24 +	cat debian/patches/series | while read file; do
    2.25 +		patch -p1 < debian/patches/$file
    2.26 +	done
    2.27 +	sed -i '/^CFLAGS/s/=-O2/+=/; /^LDFLAGS/s/-N//' Makefile
    2.28 +	mkdir -p $install/usr/bin $install/usr/share/man/man1
    2.29 +	make && make install
    2.30 +	cd $install/usr/bin
    2.31 +	ln -s mmv mcp
    2.32 +	ln -s mmv mad
    2.33 +	ln -s mmv mln
    2.34 +}
    2.35 +
    2.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.37 +genpkg_rules()
    2.38 +{
    2.39 +	cp -a $install/* $fs
    2.40 +	rm -r $fs/usr/share
    2.41 +}