debmaker/ressources/moodle-format-tiles/debmaker

33 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
}