25 lines
611 B
Bash
Executable file
25 lines
611 B
Bash
Executable file
#!/bin/bash
|
|
|
|
VERSION=0.9.5
|
|
APP=baikal
|
|
DEPOT=https://github.com/sabre-io/Baikal.git
|
|
GIT_VERSION=${VERSION}
|
|
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
|
|
DEBIAN_VERSION_CODENAME=bullseye
|
|
IMAGE_SIZE=2
|
|
PACKAGE_DEPENDENCY="php-mbstring php-exif php-opcache php-sockets php-tokenizer php-iconv php-json php-phar php-curl rsync zip make composer unzip devscripts debhelper-compat build-essential"
|
|
|
|
main(){
|
|
base_package_upgrade
|
|
install_package_dependency
|
|
get_git_source
|
|
makedeb
|
|
}
|
|
|
|
makedeb(){
|
|
cd /tmp/${APP}/
|
|
cp -fr /tmp/src/debian /tmp/${APP}
|
|
dch -v ${VERSION}
|
|
dpkg-buildpackage -us -uc
|
|
cp /tmp/*.deb /tmp/dist
|
|
}
|