wok-6.x view mmv/receipt @ rev 18930
mmv, sqlite, unclutter: use EXTRA_SOURCE_FILES to track the sources files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 26 17:55:33 2016 +0100 (2016-02-26) |
parents | 76d0acbe919d |
children | b78e79c31b1f |
line source
1 # SliTaz package receipt.
3 PACKAGE="mmv"
4 VERSION="1.01b-18"
5 CATEGORY="system-tools"
6 SHORT_DESC="Move, copy, append, or link multiple files in one command"
7 MAINTAINER="Lucas Levrel <llev@slitaz.org>"
8 LICENSE="GPL"
9 WEB_SITE="https://packages.debian.org/sid/mmv"
10 TARBALL="${PACKAGE}_${VERSION%-*}.orig.tar.gz"
11 WGET_URL="http://http.debian.net/debian/pool/main/m/mmv/$TARBALL"
12 EXTRA_SOURCE_FILES="${PACKAGE}_$VERSION.debian.tar.gz"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 wget -O "$SOURCES_REPOSITORY/${PACKAGE}_$VERSION.debian.tar.gz" \
21 http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz
22 tar -xzf $SOURCES_REPOSITORY/${PACKAGE}_$VERSION.debian.tar.gz debian/patches/
23 cat debian/patches/series | while read file; do
24 patch -p1 < debian/patches/$file
25 done
26 sed -i '/^CFLAGS/s/=-O2/+=/; /^LDFLAGS/s/-N//' Makefile
27 mkdir -p $install/usr/bin $install/usr/share/man/man1
28 make && make install
29 cd $install/usr/bin
30 ln -s mmv mcp
31 ln -s mmv mad
32 ln -s mmv mln
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 rm -r $fs/usr/share
40 }