aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 22:26:22 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-14 03:36:23 +0000
commit628923e8ad959581c983d7fd9f49833eb0304893 (patch)
treeca6e3b9e5420d971f0e8e167212c83973ea35071
parent00df3003e618215875e05223d35e53be450aa389 (diff)
downloadaports-628923e8ad959581c983d7fd9f49833eb0304893.tar.gz
aports-628923e8ad959581c983d7fd9f49833eb0304893.tar.bz2
aports-628923e8ad959581c983d7fd9f49833eb0304893.tar.xz
community/bloaty: fix location of cmake modules, add -dev
-rw-r--r--community/bloaty/APKBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/community/bloaty/APKBUILD b/community/bloaty/APKBUILD
index 671c4b29b9..e5c704a2df 100644
--- a/community/bloaty/APKBUILD
+++ b/community/bloaty/APKBUILD
@@ -4,11 +4,12 @@ pkgname=bloaty
pkgver=1.0
pkgrel=1
pkgdesc="Bloaty McBloatface: a size profiler for binaries"
+options="!check" # no test suite
url="https://github.com/google/bloaty"
arch="all"
license="Apache-2.0"
makedepends="cmake protobuf-dev re2-dev capstone-dev"
-options="!check" # no test suite
+subpackages="$pkgname-dev"
source="https://github.com/google/bloaty/releases/download/v$pkgver/bloaty-$pkgver.tar.bz2
f66077506462bf96fee79f7f20516ca5d1e02f8a.patch
2aec85618e91af975af3146563333c2c2e97260.patch"
@@ -18,22 +19,23 @@ build() {
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
+ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
- -DCMAKE_BUILD_TYPE=None \
- -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
- -DCMAKE_C_FLAGS="$CFLAGS" \
- ${CMAKE_CROSSOPTS} .
+ $CMAKE_CROSSOPTS .
make
}
package() {
make DESTDIR="$pkgdir" install
+
# Upstream forgot to install this via CMake.
install -m755 liblibbloaty.so "$pkgdir"/usr/lib/liblibbloaty.so.1.0.0
ln -s liblibbloaty.so.1.0.0 "$pkgdir"/usr/lib/liblibbloaty.so.1
ln -s liblibbloaty.so.1 "$pkgdir"/usr/lib/liblibbloaty.so
+
+ mkdir -p "$pkgdir"/usr/lib/cmake
+ mv "$pkgdir"/usr/lib/Bloaty "$pkgdir"/usr/lib/cmake
}
sha512sums="3dd6cd25f5fdffc8702ac84fc87d7ab79c5fc0662a2ece3df0b531ebca368f78155b3f2eb646077e0ba91205b5bf8c4727587097b90162af6066ca6bfb3d4084 bloaty-1.0.tar.bz2