smlinux/base/mdadm/smbuild
PktSurf ccd3a8ef8d Removed gcc from .gitignore
Fixed installation paths in base/cbindgen,libffi,mdadm
2024-11-05 16:41:34 +05:30

40 lines
1.1 KiB
Text

# 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 BINDIR=/usr/bin
make install BINDIR=/usr/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
"