aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/rttr/APKBUILD37
-rw-r--r--testing/rttr/permission.patch13
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/rttr/APKBUILD b/testing/rttr/APKBUILD
new file mode 100644
index 0000000000..0f2eac7094
--- /dev/null
+++ b/testing/rttr/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=rttr
+pkgver=0.9.6
+pkgrel=0
+pkgdesc="C++ Reflection library"
+arch="all"
+url="https://www.rttr.org/"
+license="MIT"
+makedepends="cmake doxygen graphviz"
+source="$pkgname-$pkgver.tar.gz::https://www.rttr.org/releases/$pkgname-$pkgver-src.tar.gz
+ permission.patch"
+subpackages="$pkgname-dev $pkgname-doc"
+options="!check" # Broken
+
+build() {
+ cmake \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_UNIT_TESTS=FALSE \
+ -DBUILD_EXAMPLES=OFF
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ DESTDIR="$pkgdir" make install
+
+ install -d "$pkgdir"/usr/share
+ mv "$pkgdir"/usr/doc "$pkgdir"/usr/share/doc
+}
+sha512sums="7e0d4fa87f83feda0b926d4d0e52aaf0f369f25fe7e23e5ffe86c0bba159e8353cef44eed37611a81e8ccc8d6facb36942f940d0d0b965f873177d7078f91cf4 rttr-0.9.6.tar.gz
+5bd959bf2741739aa34732768d78e2fd7694278e04cde0eba5e2b2fe8817910e1727834f60b8114edc77100f5dbf3059ccb882553dfa7484218fc5d9fb3cdbe5 permission.patch"
diff --git a/testing/rttr/permission.patch b/testing/rttr/permission.patch
new file mode 100644
index 0000000000..bec7ac36bf
--- /dev/null
+++ b/testing/rttr/permission.patch
@@ -0,0 +1,13 @@
+Avoid installing headers with mode 700.
+
+--- a/CMake/utility.cmake
++++ b/CMake/utility.cmake
+@@ -165,7 +165,7 @@
+ getNameOfDir(CMAKE_CURRENT_SOURCE_DIR DIRNAME)
+ if (${shouldInstall})
+ if (NOT ${FULL_HEADER_PATH} MATCHES ".*_p.h$") # we don't want to install header files which are marked as private
+- install(FILES ${FULL_HEADER_PATH} DESTINATION "include/${DIRNAME}/${REL_PATH}" PERMISSIONS OWNER_READ)
++ install(FILES ${FULL_HEADER_PATH} DESTINATION "include/${DIRNAME}/${REL_PATH}")
+ endif()
+ endif()
+ endforeach()