wok-next diff parted/receipt @ rev 20050
Up scite (4.0.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 23 13:19:31 2017 +0200 (2017-10-23) |
parents | 18c4d15a72df |
children | c4e53a39395a |
line diff
1.1 --- a/parted/receipt Fri Jan 27 15:35:03 2017 +0200 1.2 +++ b/parted/receipt Mon Oct 23 13:19:31 2017 +0200 1.3 @@ -1,9 +1,9 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="parted" 1.8 VERSION="3.2" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="GNU parted partition editor." 1.11 +SHORT_DESC="GNU parted partition editor" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="GPL3" 1.14 WEB_SITE="http://www.gnu.org/software/parted/index.shtml" 1.15 @@ -12,33 +12,45 @@ 1.16 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.17 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.18 1.19 -DEPENDS="util-linux-uuid util-linux-blkid" 1.20 -BUILD_DEPENDS="e2fsprogs-dev util-linux-uuid-dev util-linux-blkid-dev" 1.21 -SUGGESTED="btrfs-progs e2fsprogs f2fs-tools dosfstools mtools hfsutils \ 1.22 -hfsprogs jfsutils util-linux lvm2 nilfs-utils ntfsprogs reiser4progs \ 1.23 -reiserfsprogs xfsprogs" 1.24 +BUILD_DEPENDS="gettext util-linux-uuid-dev readline-dev check-dev texinfo" 1.25 +SPLIT="parted-dev" 1.26 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 { 1.30 - patch -p1 < $stuff/device_mapper.u 1.31 - grep -qs 'define u8' libparted/arch/linux.c || 1.32 - sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \ 1.33 - libparted/arch/linux.c 1.34 +# grep -qs 'define u8' libparted/arch/linux.c || 1.35 +# sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' libparted/arch/linux.c 1.36 1.37 + # http://www.linuxfromscratch.org/blfs/view/stable/postlfs/parted.html 1.38 ./configure \ 1.39 - --disable-debug \ 1.40 - --disable-Werror \ 1.41 - --without-readline \ 1.42 + --disable-static \ 1.43 --disable-device-mapper \ 1.44 $CONFIGURE_ARGS && 1.45 - make && make install 1.46 + make && 1.47 + make -C doc html && 1.48 + makeinfo --html -o doc/html doc/parted.texi && 1.49 + makeinfo --plaintext -o doc/parted.txt doc/parted.texi && 1.50 + make install && 1.51 + docdir="$install/usr/share/doc/parted-$VERSION" && 1.52 + mkdir -p $docdir/html && 1.53 + install -v -m644 doc/html/* $docdir/html && 1.54 + install -v -m644 doc/FAT doc/API doc/parted.txt doc/parted.html $docdir 1.55 } 1.56 1.57 # Rules to gen a SliTaz package suitable for Tazpkg. 1.58 genpkg_rules() 1.59 { 1.60 - mkdir -p $fs/usr/lib 1.61 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.62 - cp -a $install/usr/sbin $fs/usr 1.63 + case $PACKAGE in 1.64 + parted) 1.65 + copy *.so* sbin/ 1.66 + DEPENDS="ncurses readline util-linux-blkid util-linux-uuid" 1.67 + SUGGESTED="btrfs-progs e2fsprogs f2fs-tools dosfstools mtools \ 1.68 + hfsutils hfsprogs jfsutils util-linux lvm2 nilfs-utils ntfsprogs \ 1.69 + reiser4progs reiserfsprogs xfsprogs" 1.70 + ;; 1.71 + *-dev) 1.72 + copy @dev 1.73 + DEPENDS="parted util-linux-blkid-dev util-linux-uuid-dev" 1.74 + ;; 1.75 + esac 1.76 }