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