wok diff mmv/receipt @ 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
children a77b556923e9
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mmv/receipt	Mon Jan 18 21:43:09 2016 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mmv"
     1.7 +VERSION="1.01b-18"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Move, copy, append, or link multiple files in one command"
    1.10 +MAINTAINER="Lucas Levrel <llev@slitaz.org>"
    1.11 +LICENSE="GPL"
    1.12 +WEB_SITE="https://packages.debian.org/sid/mmv"
    1.13 +TARBALL="${PACKAGE}_${VERSION%-*}.orig.tar.gz"
    1.14 +WGET_URL="http://http.debian.net/debian/pool/main/m/mmv/$TARBALL"
    1.15 +
    1.16 +DEPENDS=""
    1.17 +BUILD_DEPENDS=""
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	wget http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz
    1.23 +	tar -xzf ${PACKAGE}_$VERSION.debian.tar.gz debian/patches/
    1.24 +	cat debian/patches/series | while read file; do
    1.25 +		patch -p1 < debian/patches/$file
    1.26 +	done
    1.27 +	sed -i '/^CFLAGS/s/=-O2/+=/; /^LDFLAGS/s/-N//' Makefile
    1.28 +	mkdir -p $install/usr/bin $install/usr/share/man/man1
    1.29 +	make && make install
    1.30 +	cd $install/usr/bin
    1.31 +	ln -s mmv mcp
    1.32 +	ln -s mmv mad
    1.33 +	ln -s mmv mln
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	cp -a $install/* $fs
    1.40 +	rm -r $fs/usr/share
    1.41 +}