You are not logged in.

#1 2019-10-04 16:34:21

jemadux
Member
From: Thessaloniki City / Greece
Registered: 2010-07-17
Posts: 66

OrthCal

I would like someone give me the pkgbuild of OrthCal  to have in archlinux

https://launchpad.net/orthcal/

Last edited by jemadux (2019-10-04 16:45:28)

Offline

#2 2019-10-04 19:31:07

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: OrthCal

This is the perfect opportunity to learn how to write PKGBUILDs. They are short bash scripts and the documentation for them on the Wiki is reasonably complete.

All the best,

-HG

Offline

#3 2019-10-04 20:18:52

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: OrthCal

There is a fork called OtrhCal that seems to be a bit more recent. I don't know if the code is any good, though.
https://gitlab.com/psposito/otrhcal

Apparently it has a PKGBUILD: https://gitlab.com/psposito/otrhcal/-/tags


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2019-10-04 22:18:35

jemadux
Member
From: Thessaloniki City / Greece
Registered: 2010-07-17
Posts: 66

Re: OrthCal

progandy wrote:

There is a fork called OtrhCal that seems to be a bit more recent. I don't know if the code is any good, though.
https://gitlab.com/psposito/otrhcal

Apparently it has a PKGBUILD: https://gitlab.com/psposito/otrhcal/-/tags

but  i cannot build it via that pgkbuild

Offline

#5 2019-10-04 22:34:01

loqs
Member
Registered: 2014-03-06
Posts: 17,315

Re: OrthCal

jemadux wrote:
progandy wrote:

There is a fork called OtrhCal that seems to be a bit more recent. I don't know if the code is any good, though.
https://gitlab.com/psposito/otrhcal

Apparently it has a PKGBUILD: https://gitlab.com/psposito/otrhcal/-/tags

but  i cannot build it via that pgkbuild

Please post the command you used and the output it produced when you attempted to use that PKGBUILD.
Edit:
Ah the package() function of the PKGBUILD is broken as is the Makefile.
Th scripts also hardcode the paths so everything has to live under /opt/orthcal/ unless the scripts are changed.
I would ignore the Makefile,  remove the build function as it servers no purpose and package everything using the install command.

package() {
  local _languages=(el es ro ru)
  local _lang
  cd "${pkgname}-${pkgver}"
  install -dm 755 "$pkgdir"/opt/orthcal/bin/
  install -dm 755 "$pkgdir"/opt/orthcal/content/images
  install -dm 755 "$pkgdir"/usr/share/applications/
  for _lang in ${_languages[@]}
  do
    install -dm 755 "$pkgdir"/opt/orthcal/translations/locale/$_lang/LC_MESSAGES/
  done
  install -Dm 755 bin/OrthCal.pl "$pkgdir"/opt/orthcal/bin/OrthCal.pl
  install -Dm 755 bin/OrthCal_ind.py "$pkgdir"/opt/orthcal/bin/OrthCal_ind.py
  install -Dm 644 content/saints.db "$pkgdir"/opt/orthcal/content
  install -Dm 644 content/images/* "$pkgdir"/opt/orthcal/content/images
  for _lang in ${_languages[@]}
  do
    install -Dm 644 translations/locale/$_lang/LC_MESSAGES/* "$pkgdir"/opt/orthcal/translations/locale/$_lang/LC_MESSAGES/
  done
  install -Dm 755 extras-orthcal.desktop "$pkgdir"/usr/share/applications/
}

Also the package does not contain any binaries it should use arch any.

Last edited by loqs (2019-10-05 00:29:11)

Offline

#6 2019-12-29 17:22:22

psposito
Member
Registered: 2019-12-22
Posts: 2

Re: OrthCal

Hello to  all.

I have prepared two different versions, one light themed, and the other black themed (https://gitlab.com/psposito/otrhcal/-/tags/3.0.1), revised both for Python3 instead of Python2.

The PKGBUILDs will be uploaded on AUR, after some testing, a.s.a.p. and you will be informed accordingly.

Offline

#7 2019-12-29 19:13:01

psposito
Member
Registered: 2019-12-22
Posts: 2

Offline

Board footer

Powered by FluxBB