Skip to content

Commit

Permalink
🚧 pacman: hardcode package version
Browse files Browse the repository at this point in the history
due to the way the pkgver and pulling source currently works is broken
and should never be used
  • Loading branch information
vnepogodin committed Nov 27, 2024
1 parent 5563cbe commit 6ce8cf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pacman/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = pacman
pkgdesc = A library-based package manager with dependency support. CachyOS fork.
pkgver = 7.0.0.r17.ge5f1532
pkgrel = 1
pkgver = 7.0.0.r6.gc685ae6
pkgrel = 2
url = https://www.archlinux.org/pacman/
arch = x86_64
arch = aarch64
Expand Down
12 changes: 6 additions & 6 deletions pacman/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

_staging=false
pkgname=pacman
pkgver=7.0.0.r17.ge5f1532
pkgver=7.0.0.r6.gc685ae6
_sqlitever=$(curl -s 'https://archlinux.org/packages/search/json/?name=sqlite' | grep -oP '"pkgver":\s*"\K[^"]+' | head -n 1 | awk -F. '{
printf "%d%02d%02d", $1, $2, $3;
if (NF == 4) { printf "%02d", $4 }
else { printf "00" }
}')
pkgrel=1
pkgrel=2
pkgdesc="A library-based package manager with dependency support. CachyOS fork."
arch=('x86_64' 'aarch64')
url="https://www.archlinux.org/pacman/"
Expand Down Expand Up @@ -92,10 +92,10 @@ validpgpkeys=(
#source+=(https://raw.githubusercontent.com/vnepogodin/my-patches/develop/pacman/0001-libalpm-parallel-signature-check.patch)
#fi

pkgver() {
cd "$pkgname"
git describe --abbrev=7 --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
#pkgver() {
# cd "$pkgname"
# git describe --abbrev=7 --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
#}

prepare() {
cd "${pkgname}"
Expand Down

0 comments on commit 6ce8cf0

Please sign in to comment.