Package Details: kopano-core-git 10.0.7-1

Git Clone URL: https://aur.archlinux.org/kopano-core-git.git (read-only, click to copy)
Package Base: kopano-core-git
Description: Foundation for groupware messaging enabling clients
Upstream URL: https://www.kopano.com/
Licenses: AGPL3
Groups: kopano
Provides: kopano-core=10.0.7
Submitter: martimcfly
Maintainer: martimcfly
Last Packager: martimcfly
Votes: 0
Popularity: 0.000000
First Submitted: 2021-01-19 21:46
Last Updated: 2021-07-27 19:02

Dependencies (44)

Required by (3)

Sources (1)

Pinned Comments

martimcfly commented on 2021-08-02 12:35

Where To Start?

If you feel unable to handle all the dependencies, then please consider using the docker based buildscript.

Everything is explained on Github. All dependencies/packages are in sync with following Repository.

https://github.com/pietmacom/kopano-pkgbuilds

How About Latest Release?

If you're only looking for the latest kopano release, then you'll find an explaination on github aswell.

Marti

Latest Comments

martimcfly commented on 2021-08-02 12:35

Where To Start?

If you feel unable to handle all the dependencies, then please consider using the docker based buildscript.

Everything is explained on Github. All dependencies/packages are in sync with following Repository.

https://github.com/pietmacom/kopano-pkgbuilds

How About Latest Release?

If you're only looking for the latest kopano release, then you'll find an explaination on github aswell.

Marti

martimcfly commented on 2021-05-03 16:17

Hi Andrea,

I'm sorry but I don't understand. Can you explain your issue please?

As soon the package is named anything like "*-git" the source is taken from master. And indeed it is named "kopano-core-git".

_sourceBranch=$(if [[ "${pkgname}" == *-git ]]; then echo "#branch=master"; else echo "#tag=${_tagPrefix}${pkgver}${_tagSuffix}"; fi)
source=(
    "${pkgname}::git+https://stash.kopano.io/scm/kc/kopanocore.git${_sourceBranch}"
)

The version is created from kopanos git-content. The last tag and the master revision are concatinated. My build from today morning is => 11.0.1.r11004.e783b3ecae5

pkgver() {
    cd ${srcdir}/${pkgname}
    if [[ "${pkgname}" == *-git ]];
    then
    _lastTag=$(git tag -l "${_tagPrefix}*" --sort=v:refname | tail -n 1)
    _revision="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
    if [ ! -z "${_lastTag}" ];
    then
        echo "${_lastTag}" | sed "s|${_tagPrefix}\(.*\)${_tagSuffix}|\1.r${_revision}|"
    else
        echo "${pkgver}" | sed "s|\(.*\)-git|1.r${_revision}|"
    fi
    else
        echo ${pkgver}
    fi
}

So it doesn't matter what's written in $pkgver of this package. Except you remove "-git" from $pkgname. In this case the actual version named in $pkgver is build.

The Wiki doesn't say which version has to be preset in $pkgver in the PKGBUILD. As far as I've seen?

https://wiki.archlinux.org/title/VCS_package_guidelines#Git

Anyways, when you wish to build the latest release of Kopano, then I recommend using this. All packages are published to AUR from there.

https://github.com/pietmacom/kopano-pkgbuilds

Marti

denisse commented on 2021-05-02 04:47

Hi, the name of the package is incorrect as it does not actually install kopano-core from the latest commit of the Git repository.

Please update the PKGBUILD so it builds from source fetching the latest commit from the master branch of kopano-core's Git repository

Thank you!