You are not logged in.

#1 2022-12-13 22:31:01

archmanhas
Member
Registered: 2022-12-06
Posts: 7
Website

[SOLVED] Borgcalendar installation problem

Good afternoon,

I have been trying to install borg calendar on my archlinux.
I installed java.

::

$ archlinux-java status
Available Java environments:
  java-17-jdk
  java-19-jdk
  java-19-openjdk (default)
  java-8-openjdk

The sh file for installation has the following code:

$JAVA_HOME/bin/jpackage -t deb --app-version 1.10.03 -n BorgCalendar --vendor MBCSoft -i target/installer --main-class net.sf.borg.control.Borg --main-jar borg.jar --linux-menu-group Borg --linux-shortcut


The first error said it was not finding the directory, than I:

$ export JAVA_HOME=/usr/lib/jvm/default

The another error complained that was not compatible becuse was debian, then I installed

$ sudo pacman -S dpkg

And now the error when I run linpackage.sh is:

Bundler DEB Bundle skipped because of a configuration problem: The configured main jar does not exist borg.jar in the input directory
Advice to fix: The main jar must be specified relative to the input directory (not an absolute path), and must exist within that directory

Can any one help me to install this calendar please?
I am new to linux and it is the first time I try to open anything in JAVA.

Thank you very much in advance.

Best,
M

Last edited by archmanhas (2022-12-16 14:47:06)

Offline

#2 2022-12-13 22:37:29

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: [SOLVED] Borgcalendar installation problem

Mod note: Not an installation issue, moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2022-12-13 22:42:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: [SOLVED] Borgcalendar installation problem

archmanhas wrote:

The another error complained that was not compatible becuse was debian, then I installed

 $ sudo pacman -S dpkg-deb 

And what distro is this on? There's no such thing in Arch. How did you install the system?

Offline

#4 2022-12-13 22:44:12

archmanhas
Member
Registered: 2022-12-06
Posts: 7
Website

Re: [SOLVED] Borgcalendar installation problem

Scimmia wrote:
archmanhas wrote:

The another error complained that was not compatible becuse was debian, then I installed

 $ sudo pacman -S dpkg-deb 

And what distro is this on? There's no such thing in Arch. How did you install the system?


Sorry, it was a typo, I installed dpkg with pacman.
Sorry

Last edited by archmanhas (2022-12-13 22:47:02)

Offline

#5 2022-12-13 22:53:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: [SOLVED] Borgcalendar installation problem

Anyway, from what I can see, you're trying to run a script to make a debian package. That's not going to do you any good anyway.

I don't know how to install it, but that's not it.

Offline

#6 2022-12-13 23:01:04

archmanhas
Member
Registered: 2022-12-06
Posts: 7
Website

Re: [SOLVED] Borgcalendar installation problem

How do I run it to do an archpackage instead?
Can I do that?

Offline

#7 2022-12-14 05:30:43

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,140

Re: [SOLVED] Borgcalendar installation problem

Is https://github.com/mikeberger/borg_calendar what you're trying to build?

Last edited by cfr (2022-12-14 05:43:50)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2022-12-14 05:31:39

archmanhas
Member
Registered: 2022-12-06
Posts: 7
Website

Re: [SOLVED] Borgcalendar installation problem

cfr wrote:

Is https://github.com/mikeberger/borg_calendar what you're trying to build?

Yes!

Offline

#9 2022-12-14 05:44:05

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,140

Re: [SOLVED] Borgcalendar installation problem

The linpackage.sh which is supposed to build a package for Linux consists of one line which builds a Debian package. It uses jpackage which supports some other distros, but I don't think it supports Arch. (However, I might be wrong about this - I know  nothing about java.)

As far as I can tell, though, all that script is really doing is wrapping the application in a OS-specific package. If you've got the source, you'd have to build the .jar first, I think.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2022-12-14 08:49:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,790

Re: [SOLVED] Borgcalendar installation problem

If you want to get something you can "just run" the easiest would likely be to install libappimage and changing the deb in the linpackage.sh to app-image.

The proper way would be to just build a normal JAR with maven and doing a proper PKGBUILD, don't have time to write one up right now, might give it a shot later this week if no one beats me to it.

Offline

#11 2022-12-14 10:03:59

a821
Member
Registered: 2012-10-31
Posts: 381

Re: [SOLVED] Borgcalendar installation problem

Another option is to unpack the provided deb file. Untested PKGBUILD (I didn't even run makepkg!)  to get you started

pkgname=borgcalendar-bin
pkgver=1.10.03
pkgrel=1
arch=('x86_64')
pkgdesc="A Desktop Calendar and Task Tracking System"
url="https://github.com/mikeberger/borg_calendar"
license=('unknown') ## FIXME
depends=('java-runtime') ## FIXME
sources=("${url}/releases/download/v${pkgver}/borgcalendar_${pkgver}-1_amd64.deb")
sha256sums=('76e5a2d98b060b16ee31ba57401b86cd5749fb2b80cb27807cdf97341bd97343')

package() {
    bsdtar -C "$pkgdir/" -xf data.tar.xz
}

Offline

#12 2022-12-16 14:46:23

archmanhas
Member
Registered: 2022-12-06
Posts: 7
Website

Re: [SOLVED] Borgcalendar installation problem

Thank you.
The developer sent me the .jar file and the calendar is running, problem now is how to add it to the startup but that is another problem.

Thank you all for the help.

Offline

Board footer

Powered by FluxBB