diff --git a/srcpkgs/deepin-turbo-devel b/srcpkgs/deepin-turbo-devel new file mode 120000 index 00000000000..2812f472a8a --- /dev/null +++ b/srcpkgs/deepin-turbo-devel @@ -0,0 +1 @@ +deepin-turbo \ No newline at end of file diff --git a/srcpkgs/deepin-turbo/patches/elogind.patch b/srcpkgs/deepin-turbo/patches/elogind.patch new file mode 100644 index 00000000000..59a034b5e18 --- /dev/null +++ b/srcpkgs/deepin-turbo/patches/elogind.patch @@ -0,0 +1,11 @@ +--- src/launcherlib/CMakeLists.txt 2018-08-31 07:19:31.000000000 +0200 ++++ - 2018-08-31 10:48:25.243608023 +0200 +@@ -14,7 +14,7 @@ + + # Set libraries to be linked. Shared libraries to be preloaded are not linked in anymore, + # but dlopen():ed and listed in src/launcher/preload.h instead. +-link_libraries(${LIBDL} "-L/lib -lsystemd") ++link_libraries(${LIBDL} "-L/lib -lelogind") + + # Set executable + add_library(deepin-turbo MODULE ${SRC} ${MOC_SRC}) diff --git a/srcpkgs/deepin-turbo/patches/musl.patch b/srcpkgs/deepin-turbo/patches/musl.patch new file mode 100644 index 00000000000..ec953f5b63d --- /dev/null +++ b/srcpkgs/deepin-turbo/patches/musl.patch @@ -0,0 +1,34 @@ +--- src/invoker/invoker.c 2018-08-31 07:19:31.000000000 +0200 ++++ - 2018-08-31 12:26:25.514301761 +0200 +@@ -26,7 +26,6 @@ + #include + #include + #include +-#include + #include + #include + #include +--- src/launcherlib/booster.cpp 2018-08-31 12:08:21.962843593 +0200 ++++ - 2018-08-31 12:30:57.972278758 +0200 +@@ -586,7 +586,7 @@ + else + dlopenFlags |= RTLD_LOCAL; + +-#if (PLATFORM_ID == Linux) ++#if defined(__GLIBC__) + if (m_appData->dlopenDeep()) + dlopenFlags |= RTLD_DEEPBIND; + #endif +--- src/launcherlib/booster.cpp 2018-08-31 12:49:54.813076172 +0200 ++++ - 2018-08-31 12:50:06.767009507 +0200 +@@ -49,6 +49,10 @@ + + #include "coverage.h" + ++#if !defined(__GLIBC__) ++#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src) ++#endif ++ + Booster::Booster() : + m_appData(new AppData), + m_connection(NULL), diff --git a/srcpkgs/deepin-turbo/template b/srcpkgs/deepin-turbo/template new file mode 100644 index 00000000000..e15738143b4 --- /dev/null +++ b/srcpkgs/deepin-turbo/template @@ -0,0 +1,25 @@ +# Template file for 'deepin-turbo' +pkgname=deepin-turbo +version=0.0.2 +revision=1 +build_style=cmake +hostmakedepends="pkg-config qt5-qmake qt5-host-tools" +makedepends="qt5-devel elogind-devel" +short_desc="Daemon that helps to launch applications faster" +maintainer="John " +license="GPL-3.0-or-later" +homepage="https://github.com/linuxdeepin/deepin-turbo" +distfiles="https://github.com/linuxdeepin/deepin-turbo/archive/${version}.tar.gz" +checksum=a0e754c8d7cddc73cd6a2e0e3946c091c1cce7baa8f075d8ad58799db11df8a7 + +post_install() { + rm -rf usr/lib/systemd +} + +deepin-turbo-devel_package() { + short_desc+=" - Development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + } +}