Alexander Rødseth pushed to branch main at Arch Linux / Packaging / Packages / 
c3c


Commits:
249de5d8 by Alexander F. Rødseth at 2024-12-19T14:21:48+01:00
upgpkg: 0.6.5-2

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = c3c
        pkgdesc = Compiler for the C3 language
        pkgver = 0.6.5
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/c3lang/c3c
        arch = x86_64
        license = LGPL-3.0-or-later


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 
 pkgname=c3c
 pkgver=0.6.5
-pkgrel=1
+pkgrel=2
 pkgdesc='Compiler for the C3 language'
 arch=(x86_64)
 url='https://github.com/c3lang/c3c'
@@ -14,14 +14,13 @@ source=("git+$url#tag=v$pkgver")
 
b2sums=('ce3936fe84002ff9deb07bb626a4b6f84b4f2c824315a7d81276ca433b9cd59455e56e49bf55b0f79b919b2ac16e0d87682d51dca91187d6c710cbb89a441954')
 
 prepare() {
-  # Prepare a script for outputting what becomes the "git hash" in the "c3c 
--version" output
-  mkdir -p bin
-  echo "echo v$pkgver" >> bin/git
-  chmod +x bin/git
+  cd $pkgname
+  # Pretend that git is missing and define the git hash manually
+  sed -i '/find_package(Git /d' CMakeLists.txt git_hash.cmake
+  sed -i "s/unknown/$(git rev-parse HEAD)/g" git_hash.cmake
 }
 
 build() {
-  export PATH="$PWD/bin:$PATH"
   cmake \
     -B build \
     -D C3_LINK_DYNAMIC=ON \



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/c3c/-/commit/249de5d8ef294e7375b964adb91733cff9da32ab

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/c3c/-/commit/249de5d8ef294e7375b964adb91733cff9da32ab
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to