debmaker/ressources/moodle-mod-board/debmaker
2024-04-13 23:16:05 +02:00

27 lines
590 B
Bash
Executable file

#!/bin/bash
VERSION=1.401.03
APP=moodle-mod-board
DEPOT=https://github.com/brickfield/moodle-mod_board.git
GIT_VERSION=v$VERSION
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
makedeb
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
mkdir -p ${PATH_DEB}/usr/share/moodle//mod/
mv /tmp/${APP} ${PATH_DEB}/usr/share/moodle/mod/board
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}