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


Commits:
0d9b120f by George Hu at 2026-01-18T01:16:03+08:00
Replace tarball with git source

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -5,11 +5,12 @@ pkgbase = typstyle
        url = https://github.com/typstyle-rs/typstyle
        arch = x86_64
        license = Apache-2.0
+       makedepends = git
        makedepends = cargo
        depends = gcc-libs
        depends = glibc
        optdepends = typst: For typst compilation
-       source = 
typstyle-0.14.4.tar.gz::https://github.com/typstyle-rs/typstyle/archive/refs/tags/v0.14.4.tar.gz
-       sha256sums = 
c20a07b9535dc34c0099f744f435ebfb53668b92f05e59b115fd264ecb9f7187
+       source = git+https://github.com/typstyle-rs/typstyle.git#tag=v0.14.4
+       sha256sums = 
a15a149af4ab68ea518beb971e6f913f05acdf697619d19784dfd7fd9adbea62
 
 pkgname = typstyle


=====================================
PKGBUILD
=====================================
@@ -9,23 +9,23 @@ arch=('x86_64')
 url="https://github.com/${pkgname}-rs/${pkgname}";
 license=("Apache-2.0")
 depends=("gcc-libs" "glibc")
-makedepends=("cargo")
+makedepends=("git" "cargo")
 optdepends=("typst: For typst compilation")
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
-sha256sums=('c20a07b9535dc34c0099f744f435ebfb53668b92f05e59b115fd264ecb9f7187')
+source=("git+${url}.git#tag=v${pkgver}")
+sha256sums=('a15a149af4ab68ea518beb971e6f913f05acdf697619d19784dfd7fd9adbea62')
 
 prepare() {
-       cd "${pkgname}-${pkgver}/"
+       cd "${pkgname}/"
        cargo fetch --locked --target host-tuple
 }
 
 build() {
-       cd "${pkgname}-${pkgver}/"
+       cd "${pkgname}/"
        cargo build --frozen --release --all-features
 }
 
 package() {
-       cd "${pkgname}-${pkgver}/target/release/"
+       cd "${pkgname}/target/release/"
        install -Dm755 "${pkgname}" -t "${pkgdir}/usr/bin/"
 
        install -Dm644 <("./${pkgname}" completions bash) 
"${pkgdir}/usr/share/bash-completion/completions/${pkgname}"



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/typstyle/-/commit/0d9b120f6440652e85105264381823d3534909db

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


Reply via email to