1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-27 13:30:31 +01:00

Compare commits

..

5 Commits

Author SHA1 Message Date
ea8d192938 upgpkg: bloaty 1.1-2
Apply Fedora patches for dealing with modern asbeil
2023-10-16 08:59:19 +02:00
77187c5975 Add 'bloaty/' from commit 'b853017f5981f0afcb4129ab9085fa139679fd50'
git-subtree-dir: bloaty
git-subtree-mainline: fea4ae0cc3
git-subtree-split: b853017f59
2023-10-16 08:48:42 +02:00
b853017f59 Update to v1.1.
Now a lot smaller since it uses system dependencies.
2020-05-24 13:01:53 +02:00
3d100f43e4 Fix conflicts and relro issues. 2019-09-02 16:42:45 +02:00
7ad8d5a3d9 1.0 release. 2018-12-06 18:08:05 +01:00
2 changed files with 62 additions and 0 deletions

20
bloaty/.SRCINFO Normal file
View File

@@ -0,0 +1,20 @@
pkgbase = bloaty
pkgdesc = a size profiler for binaries
pkgver = 1.1
pkgrel = 2
url = https://github.com/google/bloaty
arch = x86_64
license = Apache
makedepends = cmake
depends = gcc-libs
depends = re2
depends = protobuf
depends = capstone
depends = abseil-cpp
options = !emptydirs
source = https://github.com/google/bloaty/releases/download/v1.1/bloaty-1.1.tar.bz2
source = https://src.fedoraproject.org/rpms/bloaty/raw/rawhide/f/bloaty-1.1-absl.patch
sha256sums = a308d8369d5812aba45982e55e7c3db2ea4780b7496a5455792fb3dcba9abd6f
sha256sums = 96cc0528f6464b03d0e68060ff2d24c36624c7d3991cee142df8d3d27cefeb51
pkgname = bloaty

42
bloaty/PKGBUILD Normal file
View File

@@ -0,0 +1,42 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=bloaty
pkgver=1.1
pkgrel=2
pkgdesc="a size profiler for binaries"
arch=(x86_64)
url="https://github.com/google/bloaty"
license=('Apache')
depends=(gcc-libs re2 protobuf capstone abseil-cpp)
makedepends=(cmake)
options=(!emptydirs)
source=(
"https://github.com/google/bloaty/releases/download/v$pkgver/bloaty-$pkgver.tar.bz2"
"https://src.fedoraproject.org/rpms/bloaty/raw/rawhide/f/bloaty-1.1-absl.patch")
sha256sums=('a308d8369d5812aba45982e55e7c3db2ea4780b7496a5455792fb3dcba9abd6f'
'96cc0528f6464b03d0e68060ff2d24c36624c7d3991cee142df8d3d27cefeb51')
prepare() {
cd "$pkgname-$pkgver"
# Abseil compatibility patch borrowed from Fedora
patch -p1 < "../bloaty-1.1-absl.patch"
}
build() {
cd "$pkgname-$pkgver"
# Bloaty doesn't allow using an empty build type.
# Unfortunately, this breaks RELRO, so we need to fix that
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXE_LINKER_FLAGS_RELEASE="$LDFLAGS" -Wno-dev .
make
}
# Not included in the source tarbal, use the git release instead
# check() {
# cd "$pkgname-$pkgver"
# make test
# }
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}