You are not logged in.

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

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

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: 1,802
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


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Offline

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

progandy
Member
Registered: 2012-05-17
Posts: 3,585

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: 52

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: 9,074

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

Board footer

Powered by FluxBB