Package Details: codeberg-cli-git 0.4.2.9c3d4a2-4

Git Clone URL: https://aur.archlinux.org/codeberg-cli-git.git (read-only, click to copy)
Package Base: codeberg-cli-git
Description: CLI Tool for Codeberg similar to gh and glab.
Upstream URL: https://codeberg.org/RobWalt/codeberg-cli
Licenses: AGPL3
Conflicts: codeberg-cli
Provides: codeberg-cli
Submitter: brunomiguel
Maintainer: brunomiguel
Last Packager: brunomiguel
Votes: 0
Popularity: 0.000000
First Submitted: 2023-01-31 17:19 (UTC)
Last Updated: 2024-07-11 03:20 (UTC)

Latest Comments

brunomiguel commented on 2023-01-31 21:58 (UTC) (edited on 2023-01-31 21:59 (UTC) by brunomiguel)

Hey, @fabiololix

Yes, the LICENSE file is for the PKGBUILD. Some stuff is ambiguous about how it may be copyrighted, so it's better to be safe than sorry.

About the Rust package guidelines, some dependencies are in the software git repository itself and not available to download from the crates repository, so I'm doing the building this way. If you know a better way to do it, please let me know, and I'll update the PKGBUILD. In the meantime, I'm pushing your other suggestions to the PKGBUILD. Thank you for your feedback :)

FabioLolix commented on 2023-01-31 18:44 (UTC)

Hello,

  • there is a GPL3 license in the repo, why? It isn't the program license; I could guess you intend it as the pkgbuild license?
  • makedpends on git is missing, pkgbuild can't be build in clean chroot
  • please replace conflicts=($pkgname) with codeberg-cli
  • git+ is used in url= instead of source=()
  • the pkgver give r0.1.0.6.ge11d632 instead of 0.1.0.r11.g597c79d, prefix (i.e. v) need to be removed, r. is used as prefix when there aren't tags (here there are) https://wiki.archlinux.org/title/VCS_package_guidelines#Git
  • depends=(gcc-libs openssl) missing according to namcap

Below there is a revisioned pkgbuild but haven't implemented the rust packaging guidelines https://wiki.archlinux.org/title/Rust_package_guidelines

# Maintainer: Bruno Miguel <bruno@privacyrequired.com>

pkgname=codeberg-cli-git
pkgver=0.1.0.r11.g597c79d
pkgrel=1
pkgdesc='CLI Tool for Codeberg similar to gh and glab.'
arch=(x86_64)
url='https://codeberg.org/RobWalt/codeberg-cli'
license=(AGPL3)
depends=(gcc-libs openssl)
makedepends=(git rust)
provides=(codeberg-cli)
conflicts=(codeberg-cli)
source=(git+$url.git)
sha256sums=('SKIP')

pkgver() {
    cd "$provides"
        git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$provides"
    cargo build 
}

package() {
    cd "$srcdir"
    install -Dm0755 -t "$pkgdir/usr/bin/" "$provides/target/debug/cod"
}