2023-03-20 17:14:43 +01:00
|
|
|
# Maintainer: Morgan <morganamilo@archlinux.org>
|
|
|
|
pkgname=paru
|
2023-12-09 14:36:17 +01:00
|
|
|
pkgver=2.0.1
|
2023-03-20 17:14:43 +01:00
|
|
|
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=('GPL3')
|
|
|
|
makedepends=('cargo')
|
|
|
|
depends=('git' 'pacman')
|
|
|
|
optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot')
|
2023-12-09 14:36:17 +01:00
|
|
|
sha256sums=('47cae94d227cc08f86706408d234444af6dda192ba24309c251a0b43a8aa7980')
|
2023-03-20 17:14:43 +01:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
|
|
|
if pacman -T pacman-git > /dev/null; then
|
|
|
|
_features+="git,"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $(rustc -V) == *"nightly"* ]]; then
|
|
|
|
_features+="backtrace,"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $CARCH != x86_64 ]]; then
|
|
|
|
export CARGO_PROFILE_RELEASE_LTO=off
|
|
|
|
fi
|
|
|
|
|
|
|
|
cargo build --locked --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/"
|
|
|
|
}
|