mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-10-13 18:32:15 +00:00
Small fixes in dataengine
This commit is contained in:
1 parent
2a686f4f1e
commit
1b3280c464
16 files changed
+64
-32
No files matched your search
@@ -4,45 +4,43 @@
|
|||||||
pkgname=kdeplasma-applets-pytextmonitor
|
pkgname=kdeplasma-applets-pytextmonitor
|
||||||
_pkgname=py-text-monitor
|
_pkgname=py-text-monitor
|
||||||
pkgver=1.3.4
|
pkgver=1.3.4
|
||||||
pkgrel=5
|
pkgrel=6
|
||||||
_dtengine=ext-sysmon
|
_dtengine=ext-sysmon
|
||||||
_dtver=1.2
|
_dtver=1.2
|
||||||
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
url="https://github.com/arcan1s/pytextmonitor"
|
url="https://github.com/arcan1s/pytextmonitor"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('kdebindings-python2' 'lm_sensors' 'net-tools')
|
depends=('kdebase-workspace' 'kdebindings-python2' 'lm_sensors' 'net-tools')
|
||||||
optdepends=('hddtemp: for HDD temperature monitor'
|
optdepends=("hddtemp: for HDD temperature monitor"
|
||||||
'catalyst: for GPU monitor'
|
"catalyst: for GPU monitor"
|
||||||
'nvidia-utils: for GPU monitor')
|
"nvidia-utils: for GPU monitor")
|
||||||
makedepends=('unzip' 'cmake' 'automoc4')
|
makedepends=('cmake' 'automoc4')
|
||||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}.plasmoid
|
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}.plasmoid
|
||||||
https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_dtengine}-${_dtver}.zip)
|
https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_dtengine}-${_dtver}.zip)
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
md5sums=('cdc55960177a07b52ab0a2713f5df212'
|
md5sums=('7cca5fd76735add215f35d406c020dea'
|
||||||
'9dfc23f75d330fcb3b8a9cfa20b7717a')
|
'9b547781732ab19ad103710b7bd07d8d')
|
||||||
|
|
||||||
build ()
|
build ()
|
||||||
{
|
{
|
||||||
# build dataengine
|
# build dataengine
|
||||||
unzip -o -q ${srcdir}/${_dtengine}-${_dtver}.zip -d ${srcdir}/${_dtengine}
|
|
||||||
if [ -d ${srcdir}/${_dtengine}/build ]; then
|
if [ -d ${srcdir}/${_dtengine}/build ]; then
|
||||||
rm -r ${srcdir}/${_dtengine}/build
|
rm -r ${srcdir}/${_dtengine}/build
|
||||||
fi
|
fi
|
||||||
mkdir ${srcdir}/${_dtengine}/build && cd ${srcdir}/${_dtengine}/build
|
mkdir ${srcdir}/${_dtengine}/build && cd ${srcdir}/${_dtengine}/build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../
|
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=Release ../
|
||||||
make
|
make || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
package()
|
package()
|
||||||
{
|
{
|
||||||
# install dataengine
|
# install dataengine
|
||||||
cd ${srcdir}/${_dtengine}/build
|
cd ${srcdir}/${_dtengine}/build
|
||||||
make DESTDIR=${pkgdir} install
|
make DESTDIR=${pkgdir} install || return 1
|
||||||
|
|
||||||
# install plasmoid
|
# install plasmoid
|
||||||
unzip -o -q ${srcdir}/${_pkgname}-${pkgver}.plasmoid -d ${srcdir}/${_pkgname}
|
install -D ${srcdir}/metadata.desktop ${pkgdir}/`kde4-config --prefix`/share/kde4/services/${_pkgname}.desktop || return 1
|
||||||
install -D ${srcdir}/${_pkgname}/metadata.desktop ${pkgdir}/`kde4-config --prefix`/share/kde4/services/${_pkgname}.desktop
|
install -D ${srcdir}/metadata.desktop ${pkgdir}/`kde4-config --prefix`/share/apps/plasma/plasmoids/${_pkgname}/metadata.desktop || return 1
|
||||||
mkdir -p ${pkgdir}/`kde4-config --prefix`/share/apps/plasma/plasmoids/${_pkgname}
|
cp -r ${srcdir}/contents ${pkgdir}/`kde4-config --prefix`/share/apps/plasma/plasmoids/${_pkgname}/ || return 1
|
||||||
cp -r ${srcdir}/${_pkgname}/* ${pkgdir}/`kde4-config --prefix`/share/apps/plasma/plasmoids/${_pkgname}/
|
|
||||||
}
|
}
|
||||||
Executable
+30
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# build dataengine
|
||||||
|
ARCHIVE="ext-sysmon"
|
||||||
|
VERSION=`grep Version ext-sysmon/plasma-engine-extsysmon.desktop | awk -F "=" '{print $2}'`
|
||||||
|
# create archive
|
||||||
|
if [ -e ${ARCHIVE}-${VERSION}.zip ]; then
|
||||||
|
rm -f ${ARCHIVE}-${VERSION}.zip
|
||||||
|
fi
|
||||||
|
zip -9 -y -r -q ${ARCHIVE}-${VERSION}.zip ${ARCHIVE}
|
||||||
|
# update md5sum
|
||||||
|
MD5SUMS=`md5sum ${ARCHIVE}-${VERSION}.zip | awk '{print $1}'`
|
||||||
|
sed -i "/ '[0-9A-Fa-f]*/s/[^'][^)]*/ '${MD5SUMS}'/" PKGBUILD
|
||||||
|
sed -i "s/_dtver=[0-9.]*/_dtver=${VERSION}/" PKGBUILD
|
||||||
|
|
||||||
|
# build widget
|
||||||
|
cd sources
|
||||||
|
FILES="contents metadata.desktop"
|
||||||
|
ARCHIVE="py-text-monitor"
|
||||||
|
VERSION=`grep Version metadata.desktop | awk -F "=" '{print $2}'`
|
||||||
|
# create archive
|
||||||
|
if [ -e ${ARCHIVE}-${VERSION}.plasmoid ]; then
|
||||||
|
rm -f ${ARCHIVE}-${VERSION}.plasmoid
|
||||||
|
fi
|
||||||
|
zip -9 -y -r -q ../${ARCHIVE}-${VERSION}.plasmoid ${FILES}
|
||||||
|
cd ..
|
||||||
|
# update md5sum
|
||||||
|
MD5SUMS=`md5sum ${ARCHIVE}-${VERSION}.plasmoid | awk '{print $1}'`
|
||||||
|
sed -i "/md5sums=('[0-9A-Fa-f]*/s/[^'][^)]*/md5sums=('${MD5SUMS}'/" PKGBUILD
|
||||||
|
sed -i "s/pkgver=[0-9.]*/pkgver=${VERSION}/" PKGBUILD
|
||||||
Binary file not shown.
+14
-14
@@ -1,24 +1,24 @@
|
|||||||
project (extsysmon)
|
# set project name
|
||||||
|
project (plasma_engine_extsysmon)
|
||||||
|
|
||||||
# Find the required Libaries
|
# find required libaries
|
||||||
find_package (KDE4 REQUIRED)
|
find_package (KDE4 REQUIRED)
|
||||||
include (KDE4Defaults)
|
include (KDE4Defaults)
|
||||||
|
|
||||||
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
add_definitions (${QT_DEFINITIONS}
|
||||||
|
${KDE4_DEFINITIONS})
|
||||||
include_directories (${CMAKE_SOURCE_DIR}
|
include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${CMAKE_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
${KDE4_INCLUDES})
|
${KDE4_INCLUDES})
|
||||||
|
|
||||||
set (extsysmon_engine_SRCS extsysmon.cpp)
|
set (PLUGIN_NAME ${PROJECT_NAME})
|
||||||
|
file (GLOB PROJECT_DESKTOP *.desktop)
|
||||||
|
file (GLOB PROJECT_SRCS *.cpp)
|
||||||
|
|
||||||
# Now make sure all files get to the right place
|
# make
|
||||||
kde4_add_plugin (plasma_engine_extsysmon ${extsysmon_engine_SRCS})
|
kde4_add_plugin (${PLUGIN_NAME} ${PROJECT_SRCS})
|
||||||
target_link_libraries(plasma_engine_extsysmon
|
target_link_libraries (${PLUGIN_NAME} ${KDE4_KDECORE_LIBS} ${KDE4_PLASMA_LIBS})
|
||||||
${KDE4_KDECORE_LIBS}
|
|
||||||
${KDE4_PLASMA_LIBS})
|
|
||||||
|
|
||||||
install(TARGETS plasma_engine_extsysmon
|
# install
|
||||||
DESTINATION ${PLUGIN_INSTALL_DIR})
|
install(TARGETS ${PLUGIN_NAME} DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
|
install(FILES ${PROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR})
|
||||||
install(FILES plasma-engine-extsysmon.desktop
|
|
||||||
DESTINATION ${SERVICES_INSTALL_DIR})
|
|
||||||
@@ -9,7 +9,8 @@ Icon=utilities-system-monitor
|
|||||||
X-KDE-ServiceTypes=Plasma/DataEngine
|
X-KDE-ServiceTypes=Plasma/DataEngine
|
||||||
X-KDE-Library=plasma_engine_extsysmon
|
X-KDE-Library=plasma_engine_extsysmon
|
||||||
X-Plasma-EngineName=ext-sysmon
|
X-Plasma-EngineName=ext-sysmon
|
||||||
X-KDE-PluginInfo-Author=Evgeniy Alexeev aka arcanis
|
|
||||||
|
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
||||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||||
X-KDE-PluginInfo-Name=ext-sysmon
|
X-KDE-PluginInfo-Name=ext-sysmon
|
||||||
X-KDE-PluginInfo-Version=1.2
|
X-KDE-PluginInfo-Version=1.2
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ post_install()
|
|||||||
Update plasmoids...
|
Update plasmoids...
|
||||||
EOF
|
EOF
|
||||||
kbuildsycoca4 > /dev/null 2>&1
|
kbuildsycoca4 > /dev/null 2>&1
|
||||||
|
cat << EOF
|
||||||
|
Make sure that `hddtemp` can be run as non-root
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade()
|
post_upgrade()
|
||||||
|
|||||||
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -9,7 +9,7 @@ X-Plasma-API=python
|
|||||||
X-Plasma-MainScript=code/main.py
|
X-Plasma-MainScript=code/main.py
|
||||||
X-Plasma-RequiredExtensions=LaunchApp,LocalIO,FileDialog
|
X-Plasma-RequiredExtensions=LaunchApp,LocalIO,FileDialog
|
||||||
|
|
||||||
X-KDE-PluginInfo-Author=Evgeniy Alexeev aka arcanis
|
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
||||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||||
X-KDE-PluginInfo-Name=py-text-monitor
|
X-KDE-PluginInfo-Name=py-text-monitor
|
||||||
X-KDE-PluginInfo-Version=1.3.4
|
X-KDE-PluginInfo-Version=1.3.4
|
||||||
Reference in new issue
Block a user