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

27 lines
687 B
Plaintext
Raw Normal View History

2022-09-29 03:06:31 +02:00
#!/bin/bash
APP=tt-rss-plugin-wallabag
2022-12-23 01:04:28 +01:00
VERSION=2.0.2
2023-01-30 11:00:48 +01:00
GIT_VERSION=last
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
2022-09-29 03:06:31 +02:00
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=1
2022-10-30 07:44:48 +01:00
#DEPOT=https://github.com/joshp23/ttrss-to-wallabag-v2.git
DEPOT=https://github.com/tomamplius/ttrss-to-wallabag-v2
2022-09-29 03:06:31 +02:00
2022-12-23 01:04:28 +01:00
main(){
base_package_upgrade
get_git_source
2023-01-30 11:00:48 +01:00
sed 's/plugins.local/plugins/' /tmp/${APP}/wallabag_v2/init.php
2022-12-23 01:04:28 +01:00
makedeb
}
2022-09-29 03:06:31 +02:00
makedeb(){
PATH_DEB=/tmp/src/rootfs
2022-12-23 01:04:28 +01:00
mkdir -p ${PATH_DEB}/usr/share/tt-rss/plugins/
cp -fr /tmp/${APP}/wallabag_v2 ${PATH_DEB}/usr/share/tt-rss/plugins/wallabag_v2
2022-09-29 03:06:31 +02:00
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}