debmaker/ressources/tt-rss-plugin-wallabag/debmaker

27 lines
687 B
Bash
Executable File

#!/bin/bash
APP=tt-rss-plugin-wallabag
VERSION=2.0.2
GIT_VERSION=last
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=1
#DEPOT=https://github.com/joshp23/ttrss-to-wallabag-v2.git
DEPOT=https://github.com/tomamplius/ttrss-to-wallabag-v2
main(){
base_package_upgrade
get_git_source
sed 's/plugins.local/plugins/' /tmp/${APP}/wallabag_v2/init.php
makedeb
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
mkdir -p ${PATH_DEB}/usr/share/tt-rss/plugins/
cp -fr /tmp/${APP}/wallabag_v2 ${PATH_DEB}/usr/share/tt-rss/plugins/wallabag_v2
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}