debmaker/ressources/phpbb-language-fr/debmaker

27 lines
596 B
Bash
Executable File

#!/bin/bash
VERSION=4.8.0
APP=phpbb-language-fr
DEPOT=https://github.com/qiaeru/phpbb-language-fr.git
GIT_VERSION=v$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=1
STEP="base_package_upgrade default_prebuild makedeb"
build(){
cd /tmp/${APP}/phpBB
php ../composer.phar install -n
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
PATH_DEB_INSTALL=/tmp/src/rootfs-install
cp -fr /tmp/${APP}/language ${PATH_DEB}/usr/share/phpbb
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}