Package Details: carp-git v0.3.0.r198.g6954642c-1

Git Clone URL: https://aur.archlinux.org/carp-git.git (read-only, click to copy)
Package Base: carp-git
Description: A statically typed lisp, without a GC, for real-time applications.
Upstream URL: https://github.com/carp-lang/Carp
Licenses: Apache
Conflicts: carp
Provides: carp
Submitter: KokaKiwi
Maintainer: None
Last Packager: KokaKiwi
Votes: 0
Popularity: 0.000000
First Submitted: 2019-08-20 17:11 (UTC)
Last Updated: 2019-11-13 19:12 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

a821 commented on 2024-06-23 08:04 (UTC)

Package fails to build in a clean chroot with the error bellow. The sources need to be fixed to git+https as pointed out by @sakaru. Also, one minor issue is that this should not provide carp (it's another software).

Configuring GHC ...
gcc: error: unrecognized command-line option '--target=x86_64-unknown-linux'
configure: error: Failed to determine machine word size. Does your toolchain actually work?
Received ExitFailure 1 when running
Raw command: /build/carp-git/src/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/configure --prefix=/build/carp-git/src/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/
Run from: /build/carp-git/src/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/

Error: Error encountered while configuring GHC with
         /build/carp-git/src/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/configure --prefix=/build/carp-git/src/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/
         run in /build/carp-git/src/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/

       The following directories may now contain files, but won't be used by stack:
         - /build/carp-git/src/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/
         - /build/carp-git/src/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/

       For more information consider rerunning with --verbose flag

sakaru commented on 2022-12-06 15:18 (UTC)

Please update the schema for the upstream source to git+https. That way even users who have not set up GitHub ssh access can still build. See https://wiki.archlinux.org/title/Arch_package_guidelines#Package_sources for details.

KokaKiwi commented on 2019-11-13 19:13 (UTC)

I've added it to the PKGBUILD, thanks :)

berquist commented on 2019-11-13 18:58 (UTC)

I've made it so that the Emacs mode is automatically installed:

diff --git a/PKGBUILD b/PKGBUILD
index dd7a7c0..b945581 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
 # Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>

-pkgname=carp-git
-pkgver=v0.3.0.r122.g31e10347
-pkgrel=2
+_pkgname=carp
+pkgname=${_pkgname}-git
+pkgver=v0.3.0.r198.g6954642c
+pkgrel=1
 pkgdesc="A statically typed lisp, without a GC, for real-time applications."
 arch=(x86_64)
 url="https://github.com/carp-lang/Carp"
@@ -19,26 +20,26 @@ sha512sums=('SKIP'
             '4421fa7d2db996b4101bc8ee189c1ecb081469826d7cb540c346ed1bdd47c03563f8b52aeef6b033e6bba438f86700855157dd178df72bcca30e40ea4fe61e07')

 pkgver() {
-  cd "carp"
+  cd "${srcdir}/${_pkgname}"
   git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
 }

 build() {
-  cd "carp"
+  cd "${srcdir}/${_pkgname}"

   export STACK_ROOT="${srcdir}/.stack"
   stack build
 }

 check() {
-  cd "carp"
+  cd "${srcdir}/${_pkgname}"

   export STACK_ROOT="${srcdir}/.stack"
   stack test
 }

 package() {
-  cd "carp"
+  cd "${srcdir}/${_pkgname}"

   export STACK_ROOT="${srcdir}"/.stack

@@ -60,4 +61,7 @@ package() {
   install -m0644 -t "${pkgdir}"/usr/share/carp/img img/*

   ln -sf core_index.html "${pkgdir}"/usr/share/carp/docs/core/index.html
+
+  install -dm0755 "${pkgdir}"/usr/share/emacs/site-lisp
+  install -m0644 -t "${pkgdir}"/usr/share/emacs/site-lisp emacs/*
 }