24 lines
537 B
Text
24 lines
537 B
Text
|
#!/bin/bash
|
||
|
|
||
|
APP=tt-rss-plugin-auth-oidc
|
||
|
GIT_VERSION=last
|
||
|
DEB_VERSION=$(date +%Y%m%d%H%M)
|
||
|
DEBIAN_VERSION_CODENAME=bookworm
|
||
|
IMAGE_SIZE=1
|
||
|
DEPOT=https://gitlab.tt-rss.org/tt-rss/plugins/ttrss-auth-oidc.git
|
||
|
|
||
|
main(){
|
||
|
base_package_upgrade
|
||
|
get_git_source
|
||
|
makedeb
|
||
|
}
|
||
|
|
||
|
makedeb(){
|
||
|
PATH_DEB=/tmp/src/rootfs
|
||
|
mkdir -p ${PATH_DEB}/usr/share/tt-rss/plugins/
|
||
|
cp -fr /tmp/${APP} ${PATH_DEB}/usr/share/tt-rss/plugins/auth_oidc
|
||
|
|
||
|
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||
|
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||
|
}
|