This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Building sf/zotero_5.0.56_i386.deb | |
mkdir -p sf | |
rm -rf build client.tar.bz2 sf/zotero_5.0.56_i386.deb | |
mkdir -p build/usr/lib/zotero build/usr/share/applications build/DEBIAN | |
curl -L -o client.tar.bz2 "https://www.zotero.org/download/client/dl?channel=release&platform=linux-i686&version=5.0.56" | |
tar --strip 1 -xpf client.tar.bz2 -C build/usr/lib/zotero | |
cat << E_O_F > build/usr/share/applications/zotero.desktop | |
[Desktop Entry] | |
Name=Zotero | |
Name=Zotero | |
Comment=Open-source reference manager | |
Exec=/usr/lib/zotero/zotero | |
Icon=/usr/lib/zotero/chrome/icons/default/default48.png | |
Type=Application | |
StartupNotify=true | |
E_O_F | |
cat << E_O_F > build/DEBIAN/control | |
Package: zotero | |
Architecture: i386 | |
Maintainer: emiliano.heyns@iris-advies.com | |
Section: Science | |
Priority: optional | |
Version: 5.0.56 | |
Description: Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share research | |
E_O_F | |
dpkg-deb --build -Zgzip build sf/zotero_5.0.56_i386.deb | |
dpkg-sig -k dpkg --sign builder sf/zotero_5.0.56_i386.deb | |
# Building sf/jurism_5.0.52m40_i386.deb | |
mkdir -p sf | |
rm -rf build client.tar.bz2 sf/jurism_5.0.52m40_i386.deb | |
mkdir -p build/usr/lib/jurism build/usr/share/applications build/DEBIAN | |
curl -L -o client.tar.bz2 "https://github.com/Juris-M/assets/releases/download/client%2Frelease%2F5.0.52m40/Jurism-5.0.52m40_linux-i686.tar.bz2" | |
tar --strip 1 -xpf client.tar.bz2 -C build/usr/lib/jurism | |
cat << E_O_F > build/usr/share/applications/jurism.desktop | |
[Desktop Entry] | |
Name=Zotero | |
Name=Juris-M | |
Comment=Open-source reference manager | |
Exec=/usr/lib/jurism/jurism | |
Icon=/usr/lib/jurism/chrome/icons/default/default48.png | |
Type=Application | |
StartupNotify=true | |
E_O_F | |
cat << E_O_F > build/DEBIAN/control | |
Package: jurism | |
Architecture: i386 | |
Maintainer: emiliano.heyns@iris-advies.com | |
Section: Science | |
Priority: optional | |
Version: 5.0.52m40 | |
Description: Juris-M is a free, easy-to-use tool to help you collect, organize, cite, and share research | |
E_O_F | |
dpkg-deb --build -Zgzip build sf/jurism_5.0.52m40_i386.deb | |
dpkg-sig -k dpkg --sign builder sf/jurism_5.0.52m40_i386.deb | |
# Building sf/zotero_5.0.56_amd64.deb | |
mkdir -p sf | |
rm -rf build client.tar.bz2 sf/zotero_5.0.56_amd64.deb | |
mkdir -p build/usr/lib/zotero build/usr/share/applications build/DEBIAN | |
curl -L -o client.tar.bz2 "https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=5.0.56" | |
tar --strip 1 -xpf client.tar.bz2 -C build/usr/lib/zotero | |
cat << E_O_F > build/usr/share/applications/zotero.desktop | |
[Desktop Entry] | |
Name=Zotero | |
Name=Zotero | |
Comment=Open-source reference manager | |
Exec=/usr/lib/zotero/zotero | |
Icon=/usr/lib/zotero/chrome/icons/default/default48.png | |
Type=Application | |
StartupNotify=true | |
E_O_F | |
cat << E_O_F > build/DEBIAN/control | |
Package: zotero | |
Architecture: amd64 | |
Maintainer: emiliano.heyns@iris-advies.com | |
Section: Science | |
Priority: optional | |
Version: 5.0.56 | |
Description: Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share research | |
E_O_F | |
dpkg-deb --build -Zgzip build sf/zotero_5.0.56_amd64.deb | |
dpkg-sig -k dpkg --sign builder sf/zotero_5.0.56_amd64.deb | |
# Building sf/jurism_5.0.52m40_amd64.deb | |
mkdir -p sf | |
rm -rf build client.tar.bz2 sf/jurism_5.0.52m40_amd64.deb | |
mkdir -p build/usr/lib/jurism build/usr/share/applications build/DEBIAN | |
curl -L -o client.tar.bz2 "https://github.com/Juris-M/assets/releases/download/client%2Frelease%2F5.0.52m40/Jurism-5.0.52m40_linux-x86_64.tar.bz2" | |
tar --strip 1 -xpf client.tar.bz2 -C build/usr/lib/jurism | |
cat << E_O_F > build/usr/share/applications/jurism.desktop | |
[Desktop Entry] | |
Name=Zotero | |
Name=Juris-M | |
Comment=Open-source reference manager | |
Exec=/usr/lib/jurism/jurism | |
Icon=/usr/lib/jurism/chrome/icons/default/default48.png | |
Type=Application | |
StartupNotify=true | |
E_O_F | |
cat << E_O_F > build/DEBIAN/control | |
Package: jurism | |
Architecture: amd64 | |
Maintainer: emiliano.heyns@iris-advies.com | |
Section: Science | |
Priority: optional | |
Version: 5.0.52m40 | |
Description: Juris-M is a free, easy-to-use tool to help you collect, organize, cite, and share research | |
E_O_F | |
dpkg-deb --build -Zgzip build sf/jurism_5.0.52m40_amd64.deb | |
dpkg-sig -k dpkg --sign builder sf/jurism_5.0.52m40_amd64.deb | |
# publishing repo | |
mkdir -p sf | |
cd sf | |
gpg --armor --export dpkg > deb.gpg.key | |
apt-ftparchive packages . > Packages | |
bzip2 -kf Packages | |
apt-ftparchive release . > Release | |
gpg --yes -abs -u dpkg -o Release.gpg Release | |
cat << E_O_F > install.sh | |
curl --silent -L https://sourceforge.net/projects/zotero-deb/files/deb.gpg.key | sudo apt-key add - | |
cat << EOF | sudo tee /etc/apt/sources.list.d/zotero.list | |
deb https://sourceforge.net/projects/zotero-deb/files/ ./ | |
EOF | |
E_O_F | |
cd .. | |
rsync -avP -e ssh sf/ retorquere@frs.sourceforge.net:/home/pfs/project/zotero-deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment