39 lines
1 KiB
Bash
Executable file
39 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
VERSION=1.5.3
|
|
APP=guacamole-server
|
|
DEPOT=https://github.com/apache/guacamole-server.git
|
|
GIT_VERSION=${VERSION}
|
|
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
|
|
DEBIAN_VERSION_CODENAME=bullseye
|
|
IMAGE_SIZE=4
|
|
PACKAGE_DEPENDENCY="build-essential automake autoconf libjpeg62-turbo-dev libcairo2-dev libpng-dev libtool-bin uuid-dev libossp-uuid-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev freerdp2-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libwebsockets-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev"
|
|
|
|
main(){
|
|
base_package_upgrade
|
|
install_package_dependency
|
|
get_git_source
|
|
build
|
|
makedeb
|
|
}
|
|
|
|
build(){
|
|
mkdir /tmp/src/rootfs
|
|
cd /tmp/${APP}
|
|
libtoolize --force
|
|
aclocal
|
|
autoheader
|
|
automake --force-missing --add-missing
|
|
autoconf
|
|
./configure --prefix=/
|
|
make DESTDIR=/tmp/src/rootfs install
|
|
|
|
}
|
|
|
|
makedeb(){
|
|
PATH_DEB=/tmp/src/rootfs
|
|
cp -fr /tmp/src/DEBIAN ${PATH_DEB}
|
|
|
|
sed -i "s/%VERSION%/$DEB_VERSION/" /tmp/src/rootfs/DEBIAN/control
|
|
fakeroot dpkg-deb -Z gzip --build /tmp/src/rootfs/ /tmp/dist
|
|
}
|