This commit is contained in:
Thomas Legay 2025-01-23 03:09:12 +01:00
parent 69cbf81a7c
commit 679d31630b
29 changed files with 112 additions and 32 deletions

View file

@ -0,0 +1,27 @@
#!/bin/bash
VERSION=2021062100
APP=moodle-editor-morefontcolors
DEPOT=https://github.com/ndunand/moodle-atto_morefontcolors.git
GIT_VERSION=$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/lib/editor/atto/plugins/
mv /tmp/${APP} ${PATH_DEB}/usr/share/moodle/lib/editor/atto/plugins/morefontcolors
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View file

@ -0,0 +1,8 @@
Package: moodle-editor-morefontcolors
Version: %VERSION%
Section: contrib
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@lgy.fr>
Depends: moodle
Description: moodle-editor-morefontcolors