diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-07-19 23:11:39 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-07-19 23:11:39 +0000 |
commit | 6d81f5a77ed71467f6fc79487c4ae42505d4fb00 (patch) | |
tree | 5aade7cde26e9af532cac5d640e3aa0cb8389f7a | |
parent | 0fc83cd37a4ff05f61237bcb1becd133cd1d937d (diff) | |
download | packages-6d81f5a77ed71467f6fc79487c4ae42505d4fb00.tar.gz packages-6d81f5a77ed71467f6fc79487c4ae42505d4fb00.tar.bz2 packages-6d81f5a77ed71467f6fc79487c4ae42505d4fb00.tar.xz packages-6d81f5a77ed71467f6fc79487c4ae42505d4fb00.zip |
user/kdevelop: New package
-rw-r--r-- | user/kdevelop/APKBUILD | 55 | ||||
-rw-r--r-- | user/kdevelop/libarchive-tar.patch | 30 |
2 files changed, 85 insertions, 0 deletions
diff --git a/user/kdevelop/APKBUILD b/user/kdevelop/APKBUILD new file mode 100644 index 000000000..f1918555f --- /dev/null +++ b/user/kdevelop/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=kdevelop +pkgver=5.5.2 +pkgrel=0 +pkgdesc="KDE Integrated Development Environment (IDE)" +url="https://www.kdevelop.org/" +arch="all" +options="!check" # Requires real X11 session. +license="GPL-2.0+" +# Yes, meson is a runtime dependency. +depends="clazy cppcheck kdevelop-pg-qt meson okteta qt5-qttools + shared-mime-info" +makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev cmake extra-cmake-modules + karchive-dev kconfig-dev kcrash-dev kdeclarative-dev kdoctools-dev + kguiaddons-dev ki18n-dev kiconthemes-dev kio-dev kitemmodels-dev + kitemviews-dev kjobwidgets-dev kcmutils-dev knewstuff-dev + knotifications-dev knotifyconfig-dev kparts-dev kservice-dev + ktexteditor-dev kwindowsystem-dev kxmlgui-dev threadweaver-dev + libksysguard-dev grantlee-dev qt5-qttools-dev boost-dev clang-dev + qt5-qtwebkit-dev purpose-dev llvm-dev plasma-framework-dev okteta-dev + apr-dev astyle-dev krunner-dev subversion-dev libkomparediff2-dev + kdevelop-pg-qt-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" +source="https://download.kde.org/stable/kdevelop/$pkgver/src/kdevelop-$pkgver.tar.xz + libarchive-tar.patch + " + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DCLANG_BUILTIN_DIR=/usr/lib/clang/8.0.1/include \ + ${CMAKE_CROSSOPTS} \ + . + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="d4e0b3369ed4762beea18e43275c75b801fa4efd8265734a6b676e579f17408dc5ace4aae1b8f7eccbc70e88f6d80ecaecfc4d2c633f77f80ad0b9d066995ca2 kdevelop-5.5.2.tar.xz +c8b9cbdabb9285c183347889264e2089db5520879454fa4c85c2c1aa97612c3316c92f89bbd474d2c946c9bc8f29e4b8da79eabd6cb14e1213b0b2cdfba0c328 libarchive-tar.patch" diff --git a/user/kdevelop/libarchive-tar.patch b/user/kdevelop/libarchive-tar.patch new file mode 100644 index 000000000..318a6c2ed --- /dev/null +++ b/user/kdevelop/libarchive-tar.patch @@ -0,0 +1,30 @@ +--- kdevelop-5.5.2/kdevplatform/cmake/modules/KDevPlatformMacros.cmake.old 2020-06-02 13:20:26.000000000 +0000 ++++ kdevelop-5.5.2/kdevplatform/cmake/modules/KDevPlatformMacros.cmake 2020-07-19 21:24:00.465219669 +0000 +@@ -55,27 +55,12 @@ + ) + else() + +- if(APPLE OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") + add_custom_command(OUTPUT ${_template} + COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName} + --exclude .kdev_ignore --exclude .svn --numeric-owner + -j -f ${_template} . + DEPENDS ${_deps} + ) +- else() +- set(extraArgs "") +- if(DEFINED ENV{SOURCE_DATE_EPOCH}) +- # We assume there is tar > 1.28 if a reproducible build is wanted. +- set(extraArgs --mtime="@$ENV{SOURCE_DATE_EPOCH}" --sort=name +- --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime) +- endif() +- add_custom_command(OUTPUT ${_template} +- COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName} +- --exclude .kdev_ignore --exclude .svn --mode=go=rX,u+rw,a-s +- --owner=0 --group=0 --numeric-owner -j -f ${_template} ${extraArgs} . +- DEPENDS ${_deps} +- ) +- endif() + + endif() + |