add smartmontools autobuild.sh

This commit is contained in:
jiangcuo 2024-11-01 14:55:09 +08:00
parent 6690f9fa2a
commit b83f897454

View File

@ -0,0 +1,28 @@
#!/bin/bash
PKGNAME="smartmontools"
errlog(){
echo $1
exit 1
}
exec_build(){
apt update
apt install lsb-base -y
yes |mk-build-deps --install --remove smartmontools/debian/control
echo "clean "
make clean || echo ok
echo "build deb in `pwd` "
cd $SH_DIR/$PKGNAME
make deb||echo ok
}
echo "This is $PKGNAME build scripts"
SH_PATH=$(realpath "$0")
SH_DIR=$(dirname $SH_PATH)
cd $SH_DIR/$PKGNAME
exec_build