add smartmontools autobuild.sh
This commit is contained in:
parent
6690f9fa2a
commit
b83f897454
28
packages/smartmontools/autobuild.sh
Normal file
28
packages/smartmontools/autobuild.sh
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user