On Ubuntu, clone and then make a sources archive that includes all necessary JARs.
Note: If upgrading to a newer clj tool version, then
debian/source-include-binariesneeds to be updated.
If a release has not yet been made for the desired release version, follow these steps:
sshto Ubuntu build box.curl -O https://download.clojure.org/install/linux-install-1.10.1.763.shchmod +x linux-install-1.10.1.763.shsudo ./linux-install-1.10.1.763.shgit clone https://github.com/planck-repl/planckgit clone https://github.com/planck-repl/ubuntu-ppacp -r ubuntu-ppa/debian planckcd planckcp /usr/local/bin/clojure planck-cljs/scriptcp /usr/local/lib/clojure/deps.edn planck-cljs/scriptcp /usr/local/lib/clojure/example-deps.edn planck-cljs/scriptcp -r /usr/local/lib/clojure/libexec planck-cljs/script/libexec(make sure files copied are listed indebian/source/include-binaries)- Edit
planck-cljs/script/clojureand reviseinstall_dirto bescript script/build-sandboxBUILD_PPA=1 script/cleancd ..tar cvzf planck_2.<x>.<y>.orig.tar.gz planck
To check that there are no problems building in a sandbox, unarchive the above into a new directory in
/tmp,export HOME=/sbuild-nonexistent, and tryscript/build-sandbox.
If a release has already been made for the desired release version, and a release for a new Ubuntu version is desired, use the existing planck_2.<x>.<y>.orig.tar.gz file. (Go onto LaunchPad and download a previous copy if needed.)
If the planck tree is no longer available:
tar xvzf planck_2.24.0.orig.tar.gz
- For a given Ubuntu release, copy
debian/control.<ubuntu-release>anddebian/changelog.<ubuntu-release>to unsuffixed versions. - Set the
2.<x>.<y>version number indebian/changelogappropriately.
- Go into the
planckdirectory debuild -S -sa
cdto the topdput ppa:mfikes/planck planck_2.<x>.<y>-1ppa1~<ubuntu-release>1_source.changes
Copyright © 2018–2020 Mike Fikes and Contributors
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.