debmaker/ressources/moodle-format-tiles/debmaker
2024-05-15 10:20:52 +02:00

32 lines
646 B
Bash
Executable file

#!/bin/bash
VERSION=4.4.0.2
APP=moodle-format-tiles
DEPOT=https://bitbucket.org/dw8/moodle-format_tiles.git
GIT_VERSION=moodle44
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=1
PACKAGE_DEPENDENCY=""
main(){
base_package_upgrade
install_package_dependency
default_prebuild
build
makedeb
}
build(){
cd /tmp/${APP}
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
mkdir -p ${PATH_DEB}/usr/share/moodle//course/format/
mv /tmp/${APP} ${PATH_DEB}/usr/share/moodle//course/format/tiles
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}