23 lines
538 B
Bash
Executable file
23 lines
538 B
Bash
Executable file
#!/bin/bash
|
|
|
|
APP=tt-rss-plugin-readability
|
|
GIT_VERSION=last
|
|
DEB_VERSION=$(date +%Y%m%d%H%M)
|
|
DEBIAN_VERSION_CODENAME=bullseye
|
|
IMAGE_SIZE=1
|
|
DEPOT=https://dev.tt-rss.org/tt-rss/ttrss-af-readability.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/af_readability
|
|
|
|
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
|
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
|
}
|