Bert Peters pushed to branch main at Arch Linux / Packaging / Packages / bloaty
Commits:
16dc5c26 by Bert Peters at 2024-09-09T19:07:23+02:00
upgpkg: 1.1-6
Avoid downloads in build() and add check()
- - - - -
3 changed files:
- .SRCINFO
- + .nvchecker.toml
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = bloaty
pkgdesc = Size profiler for binaries
pkgver = 1.1
- pkgrel = 5
+ pkgrel = 6
url = https://github.com/google/bloaty
arch = x86_64
license = Apache-2.0
@@ -13,6 +13,10 @@ pkgbase = bloaty
depends = protobuf
depends = re2
source =
git+https://github.com/google/bloaty#commit=379d5305670c00c36a57e608079fd253f13bde63
+ source = bloaty-demumble::git+https://github.com/nico/demumble.git
+ source = bloaty-googletest::git+https://github.com/google/googletest
b2sums =
211837ca607b8599275929f61f41005dbab6801cc66db529394ffe80392ffe6b5ab221e49e0d95d34e4d947f795ab41320d30cb3ac4e529b8254756518094399
+ b2sums = SKIP
+ b2sums = SKIP
pkgname = bloaty
=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,4 @@
+[bloaty]
+source = "git"
+git = "https://github.com/google/bloaty.git"
+prefix = "v"
=====================================
PKGBUILD
=====================================
@@ -1,23 +1,41 @@
-# Maintainer: Bert Peters <[email protected]>
+# Maintainer: Bert Peters <[email protected]>
# Maintainer: Alexander F. Rødseth <[email protected]>
pkgname=bloaty
pkgver=1.1
-pkgrel=5
+pkgrel=6
pkgdesc='Size profiler for binaries'
arch=(x86_64)
url='https://github.com/google/bloaty'
license=('Apache-2.0')
depends=(abseil-cpp capstone protobuf re2)
makedepends=(cmake git ninja)
-source=("git+$url#commit=379d5305670c00c36a57e608079fd253f13bde63") # v1.1 +
patches
-b2sums=('211837ca607b8599275929f61f41005dbab6801cc66db529394ffe80392ffe6b5ab221e49e0d95d34e4d947f795ab41320d30cb3ac4e529b8254756518094399')
+source=("git+$url#commit=379d5305670c00c36a57e608079fd253f13bde63" # v1.1 +
patches
+ "$pkgname-demumble::git+https://github.com/nico/demumble.git"
+ "$pkgname-googletest::git+https://github.com/google/googletest")
+b2sums=('211837ca607b8599275929f61f41005dbab6801cc66db529394ffe80392ffe6b5ab221e49e0d95d34e4d947f795ab41320d30cb3ac4e529b8254756518094399'
+ 'SKIP'
+ 'SKIP')
+
+prepare() {
+ cd "$pkgname"
+
+ git submodule init
+
+ # Only need a some submodules, the rest is pulled from official packages
+ git config submodule.third_party/demumble.url "${srcdir}/${pkgname}"-demumble
+ git config submodule.third_party/googletest.url
"${srcdir}/${pkgname}"-googletest
+ git -c protocol.file.allow=always submodule update
third_party/{demumble,googletest}
+
+ # The presence of this file causes CMake to download the other submodules
even if not needed.
+ rm --verbose ".gitmodules"
+}
build() {
cmake \
-B build \
-D BLOATY_ENABLE_CMAKETARGETS=OFF \
- -D BUILD_TESTING=OFF \
+ -D BUILD_TESTING=On \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_EXE_LINKER_FLAGS_RELEASE="$LDFLAGS" \
-D CMAKE_INSTALL_PREFIX=/usr \
@@ -27,6 +45,10 @@ build() {
ninja -C build
}
+check() {
+ ninja -C build test
+}
+
package() {
DESTDIR="$pkgdir" ninja -C build install
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/bloaty/-/commit/16dc5c2632e62c94f1627a2f5c97f40c645a0d06
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/bloaty/-/commit/16dc5c2632e62c94f1627a2f5c97f40c645a0d06
You're receiving this email because of your account on gitlab.archlinux.org.