George Hu pushed to branch main at Arch Linux / Packaging / Packages / fnm


Commits:
f4db44c5 by George Hu at 2026-02-10T15:09:34+08:00
Format PKGBUILD

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -6,28 +6,28 @@ pkgver=1.38.1
 pkgrel=1
 pkgdesc="Fast and simple Node.js version manager, built with Rust"
 arch=('x86_64')
-url="https://github.com/Schniz/fnm";
+url="https://github.com/Schniz/${pkgname}";
 license=('GPL-3.0-or-later')
 depends=('xz' 'gcc-libs')
 makedepends=('cargo')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
 sha256sums=('c24e4c26183a4d88a33e343902ed2d45da23e78c66b2a696a7420eb86deddda9')
 
 prepare() {
-  cd "$pkgname-$pkgver"
-  cargo fetch --locked --target host-tuple
+       cd "${pkgname}-${pkgver}/"
+       cargo fetch --locked --target host-tuple
 }
 
 build() {
-  cd "$pkgname-$pkgver"
-  CFLAGS+=" -ffat-lto-objects" cargo build --frozen --release --all-features
+       cd "${pkgname}-${pkgver}/"
+       CFLAGS+=" -ffat-lto-objects" cargo build --frozen --release 
--all-features
 }
 
 package() {
-  cd "$pkgname-$pkgver/target/release"
-  install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+       cd "${pkgname}-${pkgver}/target/release/"
+       install -Dm755 "${pkgname}" -t "${pkgdir}/usr/bin/"
 
-  install -Dm644 <("./$pkgname" completions --shell bash) 
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
-  install -Dm644 <("./$pkgname" completions --shell fish) 
"$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish
-  install -Dm644 <("./$pkgname" completions --shell zsh) 
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
+       install -Dm644 <("./${pkgname}" completions --shell bash) 
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+       install -Dm644 <("./${pkgname}" completions --shell fish) 
"${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
+       install -Dm644 <("./${pkgname}" completions --shell zsh) 
"${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/fnm/-/commit/f4db44c5cd2d4b77b0f1355be12dff0c26f1266c

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


Reply via email to