smlinux/base/parted/parted.SMBuild
PktSurf 1ddfe9abba * Fixed indentation in base/docbook build file
* Replaced patch command with applypatch function in multiple build files in base, xorg, gtk, extra and xfce sections
2022-02-23 23:21:55 +05:30

40 lines
1 KiB
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-3.2.tar.xz'
desc="GNU disk partitioning tool"
requires="eudev util-linux lvm"
noautoconfsite=1
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/parted-3.2-xfs.patch
CFLAGS="-D_GNU_SOURCE -Dloff_t=off_t $CFLAGS -include sys/sysmacros.h" \
./configure \
--prefix="" \
--sysconfdir=/etc \
--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
"