You are not logged in.
Pages: 1
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
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
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
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/otrhcalApparently it has a PKGBUILD: https://gitlab.com/psposito/otrhcal/-/tags
but i cannot build it via that pgkbuild
Offline
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/otrhcalApparently 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
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
PKGBUILDs are ready on AUR
https://aur.archlinux.org/packages/orthcal-darkthemed/
https://aur.archlinux.org/packages/orthcal-lightthemed/
You may try them.
Offline
Pages: 1