vp-build/srcpkgs/bloaty/template

26 lines
693 B
Bash

# Template file for 'bloaty'
pkgname=bloaty
version=1.0
revision=1
build_style=cmake
makedepends="zlib-devel"
# vendored: capstone protobuf re2
short_desc="Bloaty McBloatface: a size profiler for binaries"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0"
homepage="https://github.com/google/bloaty"
distfiles="https://github.com/google/bloaty/releases/download/v${version}/bloaty-${version}.tar.bz2"
checksum=e1cf9830ba6c455218fdb50e7a8554ff256da749878acfaf77c032140d7ddde0
case "$XBPS_TARGET_MACHINE" in
armv6*) broken="undefined reference to __atomic_fetch_add_8'" ;;
esac
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" protobuf"
fi
do_install() {
vbin build/bloaty
}