debmaker/ressources/joplin/joplin

21 lines
536 B
Text
Raw Normal View History

2022-02-12 18:30:28 +01:00
#!/bin/bash
2022-02-20 15:06:59 +01:00
STEP="envinit makedeb"
envinit() {
2022-02-24 00:02:53 +01:00
apt-get install -y --no-install-recommends wget ca-certificates fakeroot dpkg
2022-02-20 15:06:59 +01:00
}
2022-02-12 18:30:28 +01:00
makedeb(){
2022-02-20 15:02:18 +01:00
GIT_VERSION=$1
DEB_VERSION=$2
2022-02-24 00:02:53 +01:00
PATH_DEB=/tmp/src/rootfs
2022-02-12 18:30:28 +01:00
wget https://github.com/laurent22/joplin/releases/download/v${GIT_VERSION}/Joplin-${GIT_VERSION}.AppImage -qO ${PATH_DEB}/usr/share/joplin/Joplin.AppImage
chmod +x ${PATH_DEB}/usr/share/joplin/Joplin.AppImage
2022-02-24 00:02:53 +01:00
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
2022-02-12 18:30:28 +01:00
}
2022-02-20 15:02:18 +01:00