mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 12:40:30 +01:00
Add 'bloaty/' from commit 'b853017f5981f0afcb4129ab9085fa139679fd50'
git-subtree-dir: bloaty git-subtree-mainline:fea4ae0cc3git-subtree-split:b853017f59
This commit is contained in:
18
bloaty/.SRCINFO
Normal file
18
bloaty/.SRCINFO
Normal file
@@ -0,0 +1,18 @@
|
||||
pkgbase = bloaty
|
||||
pkgdesc = a size profiler for binaries
|
||||
pkgver = 1.1
|
||||
pkgrel = 1
|
||||
url = https://github.com/google/bloaty
|
||||
arch = x86_64
|
||||
license = Apache
|
||||
makedepends = cmake
|
||||
depends = gcc-libs
|
||||
depends = re2
|
||||
depends = protobuf
|
||||
depends = capstone
|
||||
options = !emptydirs
|
||||
source = https://github.com/google/bloaty/releases/download/v1.1/bloaty-1.1.tar.bz2
|
||||
sha256sums = a308d8369d5812aba45982e55e7c3db2ea4780b7496a5455792fb3dcba9abd6f
|
||||
|
||||
pkgname = bloaty
|
||||
|
||||
33
bloaty/PKGBUILD
Normal file
33
bloaty/PKGBUILD
Normal file
@@ -0,0 +1,33 @@
|
||||
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
||||
pkgname=bloaty
|
||||
pkgver=1.1
|
||||
pkgrel=1
|
||||
pkgdesc="a size profiler for binaries"
|
||||
arch=(x86_64)
|
||||
url="https://github.com/google/bloaty"
|
||||
license=('Apache')
|
||||
depends=(gcc-libs re2 protobuf capstone)
|
||||
makedepends=(cmake)
|
||||
options=(!emptydirs)
|
||||
source=("https://github.com/google/bloaty/releases/download/v$pkgver/bloaty-$pkgver.tar.bz2")
|
||||
sha256sums=('a308d8369d5812aba45982e55e7c3db2ea4780b7496a5455792fb3dcba9abd6f')
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user