update
This commit is contained in:
parent
4aa8111f98
commit
c72fb8b625
46 changed files with 361 additions and 47 deletions
27
ressources/moodle-editor-tiny-c4l/debmaker
Executable file
27
ressources/moodle-editor-tiny-c4l/debmaker
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=2.1.1
|
||||
APP=moodle-editor-tiny-c4l
|
||||
DEPOT=https://github.com/reskit/moodle-tiny_c4l.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/lib/editor/tiny/plugins/
|
||||
mv /tmp/${APP} ${PATH_DEB}/usr/share/moodle/lib/editor/tiny/plugins/c4l
|
||||
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
}
|
8
ressources/moodle-editor-tiny-c4l/rootfs/DEBIAN/control
Normal file
8
ressources/moodle-editor-tiny-c4l/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,8 @@
|
|||
Package: moodle-editor-tiny-c4l
|
||||
Version: %VERSION%
|
||||
Section: contrib
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Depends: moodle
|
||||
Description: moodle-editor-tiny-c4l
|
Loading…
Add table
Add a link
Reference in a new issue