load_sync_dbs() always tried zstd decompression, but pacman stores .db files in varying formats (gzip, zstd, or decompressed). Now detects format by magic bytes: - \x28\xb5\x2f\xfd → zstd decompression - \x1f\x8b → gzip decompression - anything else → raw tar (already decompressed by hal sync) Also bumped pkgrel 2→3 to trigger rebuild.
19 lines
527 B
Bash
19 lines
527 B
Bash
# Maintainer: Celestia Ludenberg <ash8820@proton.me>
|
|
|
|
pkgname=hal
|
|
pkgver=0.2.0
|
|
pkgrel=3
|
|
pkgdesc="HAL 9000 — Antergos NeXT Package Manager. Dual-mode: wrapper (pacman) or native (standalone)."
|
|
arch=('any')
|
|
url="https://github.com/Antergos-NeXT"
|
|
license=('GPL3')
|
|
depends=('pacman' 'python' 'python-zstandard' 'libarchive' 'zstd')
|
|
optdepends=('python-requests: faster downloads in native mode')
|
|
source=("hal")
|
|
sha256sums=('SKIP')
|
|
|
|
package() {
|
|
install -dm755 "${pkgdir}/usr/bin"
|
|
install -m755 "hal" "${pkgdir}/usr/bin/hal"
|
|
}
|