wok-next annotate parted/receipt @ rev 20404
Up cookutils (1019)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 07 14:34:32 2017 +0200 (2017-12-07) |
parents | 18c4d15a72df |
children | c4e53a39395a |
rev | line source |
---|---|
al@19816 | 1 # SliTaz package receipt v2. |
pankso@136 | 2 |
pankso@136 | 3 PACKAGE="parted" |
pascal@17545 | 4 VERSION="3.2" |
pankso@211 | 5 CATEGORY="system-tools" |
al@19816 | 6 SHORT_DESC="GNU parted partition editor" |
pankso@136 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19601 | 9 WEB_SITE="http://www.gnu.org/software/parted/index.shtml" |
al@19601 | 10 HOST_ARCH="i486 arm" |
al@19601 | 11 |
al@19601 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@12488 | 13 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@136 | 14 |
al@19816 | 15 BUILD_DEPENDS="gettext util-linux-uuid-dev readline-dev check-dev texinfo" |
al@19816 | 16 SPLIT="parted-dev" |
pankso@9902 | 17 |
pankso@136 | 18 # Rules to configure and make the package. |
pankso@136 | 19 compile_rules() |
pankso@136 | 20 { |
al@19816 | 21 # grep -qs 'define u8' libparted/arch/linux.c || |
al@19816 | 22 # sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' libparted/arch/linux.c |
al@19601 | 23 |
al@19816 | 24 # http://www.linuxfromscratch.org/blfs/view/stable/postlfs/parted.html |
pankso@136 | 25 ./configure \ |
al@19816 | 26 --disable-static \ |
slaxemulator@10075 | 27 --disable-device-mapper \ |
slaxemulator@10075 | 28 $CONFIGURE_ARGS && |
al@19816 | 29 make && |
al@19816 | 30 make -C doc html && |
al@19816 | 31 makeinfo --html -o doc/html doc/parted.texi && |
al@19816 | 32 makeinfo --plaintext -o doc/parted.txt doc/parted.texi && |
al@19816 | 33 make install && |
al@19816 | 34 docdir="$install/usr/share/doc/parted-$VERSION" && |
al@19816 | 35 mkdir -p $docdir/html && |
al@19816 | 36 install -v -m644 doc/html/* $docdir/html && |
al@19816 | 37 install -v -m644 doc/FAT doc/API doc/parted.txt doc/parted.html $docdir |
pankso@136 | 38 } |
pankso@136 | 39 |
pankso@136 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@136 | 41 genpkg_rules() |
pankso@136 | 42 { |
al@19816 | 43 case $PACKAGE in |
al@19816 | 44 parted) |
al@19816 | 45 copy *.so* sbin/ |
al@19816 | 46 DEPENDS="ncurses readline util-linux-blkid util-linux-uuid" |
al@19816 | 47 SUGGESTED="btrfs-progs e2fsprogs f2fs-tools dosfstools mtools \ |
al@19816 | 48 hfsutils hfsprogs jfsutils util-linux lvm2 nilfs-utils ntfsprogs \ |
al@19816 | 49 reiser4progs reiserfsprogs xfsprogs" |
al@19816 | 50 ;; |
al@19816 | 51 *-dev) |
al@19816 | 52 copy @dev |
al@19816 | 53 DEPENDS="parted util-linux-blkid-dev util-linux-uuid-dev" |
al@19816 | 54 ;; |
al@19816 | 55 esac |
pankso@136 | 56 } |