Package Details: c3c-bin 0.6.4-1

Git Clone URL: https://aur.archlinux.org/c3c-bin.git (read-only, click to copy)
Package Base: c3c-bin
Description: C3 is an evolution of C enabling the same paradigms and retaining the same syntax as far as possible. Stable Release (with LLVM 16)
Upstream URL: https://github.com/c3lang/c3c.git
Licenses: MIT, LGPL3
Conflicts: c3c, c3c-git
Provides: c3c
Submitter: OdnetninI
Maintainer: OdnetninI
Last Packager: OdnetninI
Votes: 2
Popularity: 0.34
First Submitted: 2023-11-22 08:21 (UTC)
Last Updated: 2024-12-08 10:41 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

OdnetninI commented on 2024-12-08 10:44 (UTC)

Changes done :) Thanks for your contribution

OdnetninI commented on 2024-12-08 10:30 (UTC)

@Jona That should not be an issue, because both of them will provide c3c, so they are exclusive. This is something I already tested with the other c3c AUR variants...

Jona commented on 2024-12-05 19:23 (UTC)

@Odnetninl seems ok to me. Note that all packages should be mutually exclusive, so conflicts() should be updated accordingly. Thank you for your time and for contributing this PKGBUILD!

OdnetninI commented on 2024-12-05 19:07 (UTC)

@Jona You are right... Probably this one can be moved to a new c3c-bin-latest and use specific versions for this one... I will give you an answer on the weekend :) Thank you so much

Jona commented on 2024-12-05 17:39 (UTC) (edited on 2024-12-05 17:40 (UTC) by Jona)

Hi, I understand that you package downloads the latest c3c-bin version, but the version is misleading and the md5sum is missing. Maybe, a better way to handle this is to download the version you're supporting, provide the md5sum and provide a conflict for the other package out there in the AUR (c3c-git).

# Maintainer: Eduardo Jose Gomez Hernandez <eduardo@edujgh.net>
# Contributor: Jonatan R. Fischer <jonafischer at gmail dot com>
pkgname=c3c-bin
_pkgname=c3c
pkgver=0.6.4
pkgrel=1
pkgdesc="C3 is an evolution of C enabling the same paradigms and retaining the same syntax as far as possible. Stable Release (with LLVM 16)"
arch=(x86_64)
url="https://github.com/c3lang/c3c.git"
license=('LGPL3' 'MIT')
depends=()
makedepends=('binutils')
provides=('c3c')
conflicts=('c3c' 'c3c-git')
source=("https://github.com/c3lang/c3c/releases/download/v$pkgver/c3-linux.tar.gz")

md5sums=('0635fa110a6c304b306d4db0885b41c9')

pkgver() {
    cd "${srcdir}/c3"
    ./c3c -V | grep "C3 Compiler Version" | tr -s " " | cut -f 2 -d ':' | cut -f 2 -d " "
}

package() {
    cd "${srcdir}/c3/"

    install -d "${pkgdir}/usr/bin"
    install -d "${pkgdir}/usr/lib/${_pkgname}"

    cp "${srcdir}/c3/c3c" "${pkgdir}/usr/lib/${_pkgname}/c3c"
    cp -r "${srcdir}/c3/lib" "${pkgdir}/usr/lib/${_pkgname}/lib"
    ln -s "/usr/lib/${_pkgname}/c3c" "${pkgdir}/usr/bin/c3c"
}

OdnetninI commented on 2024-08-04 11:56 (UTC)

@mzakyr42, the issue was introduced in the last version of c3c where they changed the directory when release the tar files. Now it is fixed, that you for reporting it :)

mzakyr42 commented on 2024-08-03 22:21 (UTC)

sir the directory "${srcdir}/linux" is not there, here's the diff sir:

diff --git a/PKGBUILD b/PKGBUILD
index e145dea..00eb6de 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,18 +16,18 @@ source=('https://github.com/c3lang/c3c/releases/download/latest/c3-linux.tar.gz'
 md5sums=('SKIP')

 pkgver() {
-    cd "${srcdir}/linux"
+    cd "${srcdir}/c3"
     ./c3c -V | grep "C3 Compiler Version" | tr -s " " | cut -f 2 -d ':' | cut -f 2 -d " "
 }

 package() {
-    cd "${srcdir}/linux/"
+    cd "${srcdir}/c3"

     install -d "${pkgdir}/usr/bin"
     install -d "${pkgdir}/usr/lib/${_pkgname}"

-    cp "${srcdir}/linux/c3c" "${pkgdir}/usr/lib/${_pkgname}/c3c"
-    cp -r "${srcdir}/linux/lib" "${pkgdir}/usr/lib/${_pkgname}/lib"
+    cp "${srcdir}/c3/c3c" "${pkgdir}/usr/lib/${_pkgname}/c3c"
+    cp -r "${srcdir}/c3/lib" "${pkgdir}/usr/lib/${_pkgname}/lib"
     ln -s "/usr/lib/${_pkgname}/c3c" "${pkgdir}/usr/bin/c3c"
 }

all respect for you sir