commit 7ad8d5a3d923ff7a9f30b9257f2758039823d985 Author: Bert Peters Date: Thu Dec 6 18:08:05 2018 +0100 1.0 release. diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..2eda560 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = bloaty + pkgdesc = a size profiler for binaries + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/google/bloaty + arch = x86_64 + license = Apache + makedepends = cmake + depends = gcc-libs + source = https://github.com/google/bloaty/releases/download/v1.0/bloaty-1.0.tar.bz2 + sha256sums = e1cf9830ba6c455218fdb50e7a8554ff256da749878acfaf77c032140d7ddde0 + +pkgname = bloaty + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..5c88705 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Bert Peters +pkgname=bloaty +pkgver=1.0 +pkgrel=1 +pkgdesc="a size profiler for binaries" +arch=(x86_64) +url="https://github.com/google/bloaty" +license=('Apache') +depends=(gcc-libs zlib) +makedepends=(cmake) +source=("https://github.com/google/bloaty/releases/download/v$pkgver/bloaty-$pkgver.tar.bz2") +sha256sums=('e1cf9830ba6c455218fdb50e7a8554ff256da749878acfaf77c032140d7ddde0') + +build() { + cd "$pkgname-$pkgver" + cmake -DCMAKE_INSTALL_PREFIX=/usr . + 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 + # Prevent a conflict with regular protobuf + rm "$pkgdir/usr/bin/protoc"* + + # Don't cause conflicts with our static libraries + rm -rf "$pkgdir/usr/"{include,lib64} "$pkgdir/usr/lib/libre2.a" +}