Torsten Keßler pushed to branch main at Arch Linux / Packaging / Packages /
cpuinfo
Commits:
a3e2ab2b by Torsten Keßler at 2026-06-05T11:44:40+02:00
upgpkg: r843.ea6b9f1-1
Clean up package by removing google test and google benchmark installs
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
pkgbase = cpuinfo
pkgdesc = CPU INFOrmation library
- pkgver = r820.403d652
+ pkgver = r843.ea6b9f1
pkgrel = 1
url = https://github.com/pytorch/cpuinfo
arch = x86_64
@@ -8,8 +8,9 @@ pkgbase = cpuinfo
makedepends = git
makedepends = cmake
makedepends = ninja
+ makedepends = gtest
depends = glibc
- source =
cpuinfo::git+https://github.com/pytorch/cpuinfo#commit=403d652dca4c1046e8145950b1c0997a9f748b57
- sha256sums =
0182fd060bfdfb5f2adc58f9f1916883082bed1dbc476575c83777a8f4d49701
+ source =
cpuinfo::git+https://github.com/pytorch/cpuinfo#commit=ea6b9f1bb6e1001d8b21574d5bc78ddef62e499d
+ sha256sums =
879843097951d76bd8b234332ff438e2a0959e2429ddf9e74612a1558292465b
pkgname = cpuinfo
=====================================
PKGBUILD
=====================================
@@ -1,9 +1,7 @@
# Maintainer: Torsten Keßler <[email protected]>
pkgname=cpuinfo
-# Tagged by onnxruntimei, cpuinfo doesn't maintain releases,
-# https://github.com/pytorch/cpuinfo/issues/3#issuecomment-403319002
-_commit=403d652dca4c1046e8145950b1c0997a9f748b57
-pkgver=r820.403d652
+_commit=ea6b9f1bb6e1001d8b21574d5bc78ddef62e499d
+pkgver=r843.ea6b9f1
pkgrel=1
pkgdesc="CPU INFOrmation library"
arch=("x86_64")
@@ -16,9 +14,10 @@ makedepends=(
git
cmake
ninja
+ gtest
)
source=("${pkgname}::git+${url}#commit=$_commit")
-sha256sums=('0182fd060bfdfb5f2adc58f9f1916883082bed1dbc476575c83777a8f4d49701')
+sha256sums=('879843097951d76bd8b234332ff438e2a0959e2429ddf9e74612a1558292465b')
pkgver() {
cd ${pkgname}
@@ -33,6 +32,8 @@ build() {
-S ${pkgname}
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
+ -D USE_SYSTEM_GOOGLETEST=ON
+ -D BUILD_SHARED_LIBS=ON
)
cmake "${cmake_args[@]}"
cmake --build build
@@ -45,5 +46,9 @@ check() {
package() {
DESTDIR="${pkgdir}" cmake --install build
+ # Delete google benchmark
+ find "${pkgdir}" -name "*benchmark*" -exec rm -rf {} +
+ # cpuinfo doesn't use cmake
+ rmdir "${pkgdir}"/usr/lib/cmake
install -Dm644 ${pkgname}/LICENSE
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/cpuinfo/-/commit/a3e2ab2bd933b8247f11b1c37bf63e309fc8bd24
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/cpuinfo/-/commit/a3e2ab2bd933b8247f11b1c37bf63e309fc8bd24
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help