wok-next view parted/receipt @ rev 20343

unbound: create /var/lib/unbound
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 17 18:18:29 2017 +0100 (2017-11-17)
parents 18c4d15a72df
children c4e53a39395a
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"
10 HOST_ARCH="i486 arm"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 TARBALL="$PACKAGE-$VERSION.tar.xz"
15 BUILD_DEPENDS="gettext util-linux-uuid-dev readline-dev check-dev texinfo"
16 SPLIT="parted-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # grep -qs 'define u8' libparted/arch/linux.c ||
22 # sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' libparted/arch/linux.c
24 # http://www.linuxfromscratch.org/blfs/view/stable/postlfs/parted.html
25 ./configure \
26 --disable-static \
27 --disable-device-mapper \
28 $CONFIGURE_ARGS &&
29 make &&
30 make -C doc html &&
31 makeinfo --html -o doc/html doc/parted.texi &&
32 makeinfo --plaintext -o doc/parted.txt doc/parted.texi &&
33 make install &&
34 docdir="$install/usr/share/doc/parted-$VERSION" &&
35 mkdir -p $docdir/html &&
36 install -v -m644 doc/html/* $docdir/html &&
37 install -v -m644 doc/FAT doc/API doc/parted.txt doc/parted.html $docdir
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 parted)
45 copy *.so* sbin/
46 DEPENDS="ncurses readline util-linux-blkid util-linux-uuid"
47 SUGGESTED="btrfs-progs e2fsprogs f2fs-tools dosfstools mtools \
48 hfsutils hfsprogs jfsutils util-linux lvm2 nilfs-utils ntfsprogs \
49 reiser4progs reiserfsprogs xfsprogs"
50 ;;
51 *-dev)
52 copy @dev
53 DEPENDS="parted util-linux-blkid-dev util-linux-uuid-dev"
54 ;;
55 esac
56 }