George Hu pushed to branch main at Arch Linux / Packaging / Packages / typstyle
Commits:
657286bf by George Hu at 2026-01-18T00:50:00+08:00
Format PKGBUILD
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -6,29 +6,29 @@ pkgver=0.14.4
pkgrel=1
pkgdesc="Beautiful and reliable typst code formatter"
arch=('x86_64')
-url="https://github.com/typstyle-rs/typstyle"
+url="https://github.com/${pkgname}-rs/${pkgname}"
license=("Apache-2.0")
depends=("gcc-libs" "glibc")
makedepends=("cargo")
optdepends=("typst: For typst compilation")
-source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('c20a07b9535dc34c0099f744f435ebfb53668b92f05e59b115fd264ecb9f7187')
prepare() {
- cd "$pkgname-$pkgver"
- cargo fetch --locked --target host-tuple
+ cd "${pkgname}-${pkgver}/"
+ cargo fetch --locked --target host-tuple
}
build() {
- cd "$pkgname-$pkgver"
- cargo build --frozen --release --all-features
+ cd "${pkgname}-${pkgver}/"
+ 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 bash)
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
- install -Dm644 <("./$pkgname" completions zsh)
"$pkgdir/usr/share/zsh/site-functions/_$pkgname"
- install -Dm644 <("./$pkgname" completions fish)
"$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
+ install -Dm644 <("./${pkgname}" completions bash)
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+ install -Dm644 <("./${pkgname}" completions zsh)
"${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+ install -Dm644 <("./${pkgname}" completions fish)
"${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/typstyle/-/commit/657286bfba5b53a0c67d55da65ced3dd43783808
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/typstyle/-/commit/657286bfba5b53a0c67d55da65ced3dd43783808
You're receiving this email because of your account on gitlab.archlinux.org.