Skip to content

Commit daff44a

Browse files
committed
add pve-qemu autobuild.sh
1 parent 919e555 commit daff44a

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎packages/pve-qemu/autobuild.sh‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
PKGNAME="pve-qemu"
3+
4+
errlog(){
5+
echo $1
6+
exit 1
7+
8+
}
9+
10+
exec_build(){
11+
apt update
12+
apt install libpve-access-control librados2 librados-dev -y
13+
yes |mk-build-deps --install --remove
14+
echo "clean "
15+
make clean || echo ok
16+
echo "build deb in `pwd` "
17+
cd $SH_DIR/$PKGNAME/qemu
18+
meson subprojects download
19+
cd $SH_DIR/$PKGNAME
20+
make deb
21+
}
22+
23+
echo "This is $PKGNAME build scripts"
24+
25+
26+
SH_PATH=$(realpath "$0")
27+
SH_DIR=$(dirname $SH_PATH)
28+
29+
cd $SH_DIR/$PKGNAME
30+
exec_build

0 commit comments

Comments
 (0)