Package Details: yazi-git 0.2.3.r30.g0cb572a-1

Git Clone URL: https://aur.archlinux.org/yazi-git.git (read-only, click to copy)
Package Base: yazi-git
Description: Blazing fast terminal file manager written in Rust, based on async I/O.
Upstream URL: https://github.com/sxyazi/yazi
Licenses: MIT
Conflicts: yazi
Provides: yazi
Submitter: gplane
Maintainer: gplane
Last Packager: gplane
Votes: 2
Popularity: 0.181989
First Submitted: 2023-07-20 04:18 (UTC)
Last Updated: 2024-02-21 04:29 (UTC)

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

Neurognostic commented on 2024-02-21 06:00 (UTC) (edited on 2024-02-21 06:04 (UTC) by Neurognostic)

Now that convert(1) is called by package() please include imagemagick in makedepends array so it can be built in a clean chroot.

mackel commented on 2024-02-09 02:35 (UTC)

I update fail. The problem read:

/usr/include/c++/13.2.1/optional:477: constexpr _Tp& std::_Optional_base_impl<_Tp, _Dp>::_M_get() [with _Tp = llvm::DIExpression::FragmentInfo; _Dp = std::_Optional_base<llvm::DIExpression::FragmentInfo, true, true>]: Assertion 'this->_M_is_engaged()' failed.
error: could not compile `yazi-fm` (bin "yazi")

SandaruKasa commented on 2023-09-23 10:49 (UTC)

Thanks for accepting the patch!

However, the license is still installed in a wrong folder. It should be /usr/share/licenses/yazi-git/ and not /usr/share/licenses/yazi/.

SandaruKasa commented on 2023-09-22 20:29 (UTC)

The package is still broken if lto is enabled in makepkg settings. It needs to be overriden in PKGBUILD.

git is still missing from makedepends.

So does conflicts=(yazi).

pkgver() funciton is still broken and returns an empty string.

Moreover, it still doesn't strip the "v" prefix. And no, https://aur.archlinux.org/cgit/aur.git/commit/?h=yazi-git&id=f1365b01ed9b7ca6078d4daffd0bfa552e73bce8 is not how you do it. Not to mention you reverted this meaningless change in the next commit anyway. https://aur.archlinux.org/cgit/aur.git/commit/?h=yazi-git&id=5fa63da3634d5af5375ad42972697da6bf3f6366

Also, the license is installed into a wrong folder.

Here's a proper patch to PKGBUILD. Hopefully, it will be helpful.

diff --git a/PKGBUILD b/PKGBUILD
index f65d232..a1eeab8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@

 _pkgname=yazi
 pkgname=yazi-git
-pkgver=v0.1.4.r57.gcb13de9
-pkgrel=2
+pkgver=0.1.4.r57.gcb13de9
+pkgrel=1
 pkgdesc="Blazing fast terminal file manager written in Rust, based on async I/O."
 url="https://github.com/sxyazi/yazi"
 arch=("x86_64")
@@ -18,14 +18,16 @@ optdepends=(
     'fzf: for directory jumping'
     'poppler: for PDF preview'
     'zoxide: for directory jumping')
-makedepends=(cargo)
+makedepends=(cargo git)
+options=(!lto)
 provides=(yazi)
+conflicts=(yazi)
 source=("git+https://github.com/sxyazi/$_pkgname.git")
 sha256sums=('SKIP')

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

 prepare() {
@@ -45,7 +47,7 @@ check() {

 package() {
   cd "$srcdir/$_pkgname"
-  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
+  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
   install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
 }

cWve commented on 2023-09-16 19:43 (UTC)

build is failing at the moment because of pkgver(): fatal: No annotated tags can describe '8e72ae90c1ef56e50191cfa1a8db30beb68065f6'. However, there were unannotated tags: try --tags.

csts commented on 2023-08-16 06:51 (UTC)

I had to delete yazi-git first, to install yazi package.

csts commented on 2023-08-16 04:43 (UTC)

Can't be built:
https://bin.disroot.org/?e49bae30d8fa9bb5#3ZjfaV3JtmS3TnmZCUYHzWoD45RLRyZRZ2mFWYJ7aRk2

csts commented on 2023-08-12 18:09 (UTC)

Tried again today, builds fine.