wok-next view mmv/receipt @ rev 20718
paulstretch: fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 15:09:21 2018 +0300 (2018-05-27) |
parents | a77b556923e9 |
children | d5aab818505e |
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 "$SRC/${PACKAGE}_$VERSION.debian.tar.gz" \
21 http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz
22 tar -xzf $SRC/${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 }