smlinux/base/mdadm/mdadm.SMBuild
PktSurf 959de424b4 Upgraded base/libxml to version 2.13.4
Upgraded base/libxslt to version 1.1.42
Upgraded base/python3 to 3.9.20
Upgraded base/mdadm to 4.3
Fixed miscellaneous build files to putbstuff inside /usr
2024-10-20 17:37:22 +05:30

40 lines
1.1 KiB
Text
Executable file

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=mdadm
version=4.3
build=1sml
homepage="https://git.kernel.org/cgit/utils/mdadm"
download="https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/snapshot/mdadm-$version.tar.gz"
desc="utility to create, manage and monitor software RAID devices"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
# Thank you alpine linux
applypatch $srcdir/Create.c-fix-build.patch
applypatch $srcdir/basename.patch
applypatch $srcdir/fix-monitor-tv_sec.patch
applypatch $srcdir/mdadm-include-sysmacros.patch
applypatch $srcdir/no-werror.patch
applypatch $srcdir/util.c-include-limits.h.patch
applypatch $srcdir/lfs64.patch
}
build() {
make
make install BINDIR=/bin DESTDIR="$pkg"
install -Dm 644 mdadm.conf-example $pkg/etc/mdadm.conf.new
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
b5fb0fa1539c17685748a9d334b659317cf957e00ee596dcc89576c0ba5cf2dcd71336b2cfd7ae93b0b99c4edf524352c9459cb5cd947629abe185bc9b2ab0f7 mdadm-4.3.tar.lz
"