Proxmox-Port/packages/smartmontools/autobuild.sh
2024-11-21 13:56:29 +08:00

29 lines
506 B
Bash

#!/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"
export dscflag=nodsc
SH_PATH=$(realpath "$0")
SH_DIR=$(dirname $SH_PATH)
cd $SH_DIR/$PKGNAME
exec_build