chaotic-aur / packages

Read-only mirror of Chaotic-AUR's main repository. Issues and bug reports welcome! 📑
https://gitlab.com/chaotic-aur/pkgbuilds
GNU General Public License v3.0
339 stars 20 forks source link

[Rebuild] paru #3324

Closed SteavenGamerYT closed 2 months ago

SteavenGamerYT commented 2 months ago

Packages:

https://aur.archlinux.org/packages/paru

Latest chaotic version

2.0.3-1

Reason for rebuild

its broken

Logs

paru: error while loading shared libraries: libalpm.so.14: cannot open shared object file: No such file or directory

Builds?


# Maintainer: Morgan <morganamilo@archlinux.org>
pkgname=paru
pkgver=2.0.3
pkgrel=1
pkgdesc='Feature packed AUR helper'
url='https://github.com/morganamilo/paru'
source=("$pkgname-$pkgver.tar.gz::https://github.com/Morganamilo/paru/archive/v$pkgver.tar.gz")
backup=("etc/paru.conf")
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
license=('GPL-3.0-or-later')
makedepends=('cargo')
depends=('git' 'pacman' 'libalpm.so>=14')
optdepends=('bat: colored pkgbuild printing' 'devtools: build in chroot and downloading pkgbuilds')
sha256sums=('ccf6defc4884d580a4b813cc40323a0389ffc9aa4bdc55f3764a46b235dfe1e0')

prepare() {
  cd "$pkgname-$pkgver"
  cargo fetch --locked --target "$(rustc -vV | sed -n 's|host: ||p')"
}

build () {
  cd "$srcdir/$pkgname-$pkgver"

  if pacman -T pacman-git > /dev/null; then
    _features+="git,"
  fi

  if [[ $CARCH != x86_64 ]]; then
    export CARGO_PROFILE_RELEASE_LTO=off
  fi

  cargo build --frozen --features "${_features:-}" --release --target-dir target
  ./scripts/mkmo locale/
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  install -Dm755 target/release/paru "${pkgdir}/usr/bin/paru"
  install -Dm644 paru.conf "${pkgdir}/etc/paru.conf"

  install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8"
  install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5"

  install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash"
  install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish"
  install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru"

  install -d "$pkgdir/usr/share/"
  cp -r locale "$pkgdir/usr/share/"
}```

### More information

_No response_
dr460nf1r3 commented 2 months ago

paru-git rebuilt as well.

SteavenGamerYT commented 2 months ago

paru-2.0.3-1.1-x86_64 paru: error while loading shared libraries: libalpm.so.14: cannot open shared object file: No such file or directory open this back

SteavenGamerYT commented 2 months ago

paru-git works paru doesnt

dr460nf1r3 commented 2 months ago

Interesting. Either mirrors weren't synced, or this app needs an upstream update 👀

Here we go, needs a version bump: https://aur.archlinux.org/packages/paru#comment-990728

xiota commented 2 months ago

Rebuilt with modified PKGBUILD. Should be fixed while waiting for new upstream release.

==> Finished making: paru 2.0.3-1.2 (Sat 14 Sep 2024 08:22:48 PM CEST)
SteavenGamerYT commented 2 months ago

ok it works now