Package Details: zig-git 0.14.0.git+fd7aafdbd5-1

Git Clone URL: https://aur.archlinux.org/zig-git.git (read-only, click to copy)
Package Base: zig-git
Description: General-purpose programming language and toolchain
Upstream URL: https://ziglang.org/
Keywords: compiler language programming zig ziglang
Licenses: MIT
Conflicts: zig
Provides: zig
Replaces: zig
Submitter: PedroHLC
Maintainer: wgottwalt
Last Packager: wgottwalt
Votes: 13
Popularity: 0.77
First Submitted: 2016-08-09 17:43 (UTC)
Last Updated: 2025-04-22 08:53 (UTC)

Required by (96)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

katt commented on 2020-06-26 12:40 (UTC) (edited on 2020-06-26 12:41 (UTC) by katt)

The new pkgver no longer complies with the VCS package guidelines. https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver()_function

It should at the very least contain the revision

tiehuis commented on 2020-06-26 12:39 (UTC) (edited on 2020-06-26 12:40 (UTC) by tiehuis)

Apologies for the delay here. I've updated the PKGBUILD as per jonathon's patch and added him as a co-maintainer at his request to ensure there can be more timely updates in the case I am busy in the future.

Thank you jonathon for the patch.

wbthomason commented on 2020-06-25 15:25 (UTC)

@tiehuis: Could you please update the PKGBUILD with @jonathon's patch? As noted in the 2020-05-05 out-of-date flag message, the existing PKGBUILD no longer works.

jonathon commented on 2020-04-19 11:39 (UTC) (edited on 2020-04-22 13:53 (UTC) by jonathon)

Here's a git diff for 0.6.0 and LLVM 10 support. It tidies the PKGBUILD a little bit too:

diff --git a/.SRCINFO b/.SRCINFO
index 8f79be3..2ec1f2a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,19 @@
 pkgbase = zig-git
    pkgdesc = a programming language prioritizing robustness, optimality, and clarity
-   pkgver = 0.4.0.r938.gc47b75312
+   pkgver = 0.6.0
    pkgrel = 1
-   url = http://ziglang.org
+   url = https://ziglang.org
    arch = i686
    arch = x86_64
    license = MIT
    makedepends = cmake
    makedepends = git
    depends = clang
-   depends = llvm
+   depends = llvm>=10
+   depends = lld
    provides = zig
    conflicts = zig
-   source = git://github.com/zig-lang/zig.git
+   source = git+https://github.com/zig-lang/zig.git
    md5sums = SKIP

 pkgname = zig-git
diff --git a/PKGBUILD b/PKGBUILD
index a413e4e..e828000 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,36 @@
 # Maintainer: Marc Tiehuis <marctiehuis at gmail.com>

 pkgname=zig-git
-pkgver=0.4.0.r938.gc47b75312
+pkgver=0.6.0
 pkgrel=1
 pkgdesc="a programming language prioritizing robustness, optimality, and clarity"
 arch=('i686' 'x86_64')
-url='http://ziglang.org'
+url='https://ziglang.org'
 license=('MIT')
-depends=('clang' 'llvm')
+depends=('clang' 'llvm>=10' 'lld')
 makedepends=('cmake' 'git')
 provides=(zig)
 conflicts=(zig)
-source=("git://github.com/zig-lang/zig.git")
+source=("git+https://github.com/zig-lang/zig.git")
 md5sums=('SKIP')

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

 build() {
-    cd "$srcdir/$provides"
     mkdir -p build
     cd build
-    cmake .. -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr
+    cmake ../zig -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DZIG_PREFER_CLANG_CPP_DYLIB=ON
     make DESTDIR=.
 }

 check() {
-    cd "$srcdir/$provides/build"
-
     # omit full compiler test since it takes ages
-    ./zig version
+    build/zig version
 }

 package() {
-    cd "$srcdir/$provides/build"
-    install -Dm644 "$srcdir/$provides/LICENSE" "$pkgdir/usr/share/licenses/$provides/LICENSE"
-    make DESTDIR="$pkgdir" install
+    install -Dm644 zig/LICENSE "$pkgdir/usr/share/licenses/$provides/LICENSE"
+    make -C build DESTDIR="$pkgdir" install
 }

ugla commented on 2020-02-05 15:38 (UTC)

@daurminator I see. Thanks for letting me know!

daurnimator commented on 2020-02-05 15:16 (UTC)

@alva that was an upstream bug, should be fixed now. https://github.com/ziglang/zig/pull/4394

ugla commented on 2020-02-05 12:40 (UTC)

Seems that CMAKE_BUILD_TYPE must now be one of Debug, Release, RelWithDebInfo, or MinSizeRel. Installing the package currently fails:

==> Starting build()...
::
:: ERROR: Invalid build type: None
::
:: valid types: { Debug, Release, RelWithDebInfo, MinSizeRel }
::
CMake Error at CMakeLists.txt:17 (message):


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

tiehuis commented on 2019-07-29 10:40 (UTC)

Thanks daurnimator. Updated.

daurnimator commented on 2019-07-29 09:26 (UTC)

Could you pass -DCMAKE_BUILD_TYPE=None so that makepkg flags are respected? See https://wiki.archlinux.org/index.php/Makepkg#CFLAGS.2FCXXFLAGS.2FLDFLAGS_in_makepkg.conf_do_not_work_for_CMake_based_packages

tiehuis commented on 2019-07-25 09:19 (UTC)

Thank you for the patch! Updated.