wok view parted/receipt @ rev 25691

Up lynis (3.1.1), ncurses-examples (20211021)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 16 10:43:04 2024 +0000 (4 weeks ago)
parents 7e911016a644
children
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/parted/index.shtml"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="util-linux-uuid util-linux-blkid"
15 BUILD_DEPENDS="e2fsprogs-dev util-linux-uuid-dev util-linux-blkid-dev"
16 SUGGESTED="btrfs-progs e2fsprogs f2fs-tools dosfstools mtools hfsutils \
17 hfsprogs jfsutils util-linux lvm2 nilfs-utils ntfsprogs reiser4progs \
18 reiserfsprogs xfsprogs"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://ftp.gnu.org/gnu/parted/ 2>/dev/null | \
24 sed '/parted-/!d;s|.*parted-||;s|.tar.*||' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 patch -p1 < $stuff/device_mapper.u
31 grep -qs 'define u8' libparted/arch/linux.c ||
32 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \
33 libparted/arch/linux.c
34 ./configure \
35 --disable-debug \
36 --disable-Werror \
37 --without-readline \
38 --disable-device-mapper \
39 $CONFIGURE_ARGS &&
40 make && make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/sbin $fs/usr
49 }