smlinux/base/dmidecode/dmidecode.SMBuild

31 lines
726 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=dmidecode
version=3.2
build=1sml
homepage="https://www.nongnu.org/dmidecode/"
download="http://download.savannah.gnu.org/releases/dmidecode/dmidecode-$version.tar.xz"
desc="DMI table decoder"
requires="musl"
prepbuilddir() {
compileonlyfor x86_64
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
make
make install DESTDIR=$pkg prefix="" mandir="/share/man" sbindir="/bin"
cp LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
fb38256f4e577d015f7696e5bfe9bf023ce2448ba213deb40d825955da87728cef6d63050af0fe4f1f95f2b9a109629535c183f339ecb9a3ca956b6c3e2f574e dmidecode-3.2.tar.lz
"