New package: deepin-turbo-0.0.2
This commit is contained in:
parent
46714367c7
commit
df9603a8e9
4 changed files with 71 additions and 0 deletions
1
srcpkgs/deepin-turbo-devel
Symbolic link
1
srcpkgs/deepin-turbo-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
deepin-turbo
|
11
srcpkgs/deepin-turbo/patches/elogind.patch
Normal file
11
srcpkgs/deepin-turbo/patches/elogind.patch
Normal file
|
@ -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})
|
34
srcpkgs/deepin-turbo/patches/musl.patch
Normal file
34
srcpkgs/deepin-turbo/patches/musl.patch
Normal file
|
@ -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 <string.h>
|
||||
#include <signal.h>
|
||||
#include <sys/socket.h>
|
||||
-#include <bits/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/time.h>
|
||||
--- 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),
|
25
srcpkgs/deepin-turbo/template
Normal file
25
srcpkgs/deepin-turbo/template
Normal file
|
@ -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 <johnz@posteo.net>"
|
||||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue