smlinux/base/parted/parted.SMBuild
PktSurf 21c2f83913 Rewrote CFLAGS for base/{parted.pciutils}
Discarded unnecessary build options in base/{sysstat,texinfo,tofrodos,unzip,util-linux,wayland-protocols,xmlto,zlib}
base/which is now statically-linked
2023-03-17 14:19:05 +05:30

41 lines
1,004 B
Text
Executable file

app=parted
version=3.2
build=1sml
homepage="https://www.gnu.org/software/parted/"
download="https://ftp.gnu.org/gnu/parted/parted-$version.tar.xz"
desc="GNU disk partitioning tool"
requires="eudev util-linux lvm"
noautoconfsite=1
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/parted-3.2-xfs.patch
}
build() {
CFLAGS+=" -Dloff_t=off_t -include sys/sysmacros.h" \
./configure \
--prefix="" \
--sbindir=/bin \
--enable-threads=posix \
--disable-nls \
--disable-static
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
b7e882e2641d301b9e85b392dd65d145f53f9ddc7722d5712d34897592e1e9add088902a00121a8c8c9706750304690d1f096e36ffa6ca8fba68ff04e8e5e2fb parted-3.2.tar.lz
2aaf39c84dd630df1fb281cf3d13dc9b14a7d720c4e3a2c6c1052cc84a1bd4fbbd38d9ec521afb3c6dc514b63c19483b5ff3bef4bf3e778fcbdb843c7c5a6906 parted-3.2-xfs.patch
"