mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-09 12:57:49 +08:00
porting homerun to testing, replace icon with chakra-shield
This commit is contained in:
parent
ee6b21298f
commit
14abe77915
39
kdeplasma-applets-homerun/PKGBUILD
Normal file
39
kdeplasma-applets-homerun/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
||||
# Contributions from AUR: https://aur.archlinux.org/packages/kdeplasma-applets-homerun/
|
||||
|
||||
pkgname=kdeplasma-applets-homerun
|
||||
_pkgname=homerun
|
||||
pkgver=0.1.1
|
||||
pkgrel=2
|
||||
pkgdesc="An application launcher for KDE Plasma desktop"
|
||||
arch=('x86_64')
|
||||
url="http://userbase.kde.org/Homerun"
|
||||
license=('GPL' 'LGPL' 'BSD')
|
||||
depends=('kde-workspace')
|
||||
makedepends=('cmake' 'automoc4')
|
||||
conflicts=('kdeplasma-applets-homerun-git')
|
||||
source=("http://download.kde.org/unstable/$_pkgname/src/$_pkgname-$pkgver.tar.bz2"
|
||||
'icon.diff')
|
||||
install=$pkgname.install
|
||||
screenshot=('https://lh5.googleusercontent.com/-axerTR3fGvY/UExd_g_qByI/AAAAAAAAhlE/wKm_W5XtwWY/homerun.png')
|
||||
md5sums=('d8bef43d16eb445a1ea6969c28ad16a2'
|
||||
'50a4ecca639625a23d27589589a0f6f2' )
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/$_pkgname-$pkgver
|
||||
patch -p1 -i "${srcdir}/icon.diff"
|
||||
cd "$srcdir"
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../$_pkgname-$pkgver \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/build
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 "$srcdir/$_pkgname-$pkgver/LICENSE.BSD" "$pkgdir/usr/share/licenses/$pkgname/LICENCE"
|
||||
}
|
||||
|
10
kdeplasma-applets-homerun/icon.diff
Normal file
10
kdeplasma-applets-homerun/icon.diff
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/applet/configkeys.h 2012-12-18 11:29:03.000000000 -0500
|
||||
+++ b/applet/configkeys_new.h 2013-02-11 17:47:08.380531185 -0500
|
||||
@@ -21,6 +21,6 @@
|
||||
#define CONFIGKEYS_H
|
||||
|
||||
#define CFG_LAUNCHER_ICON_KEY "LauncherIcon"
|
||||
-#define CFG_LAUNCHER_ICON_DEFAULT "homerun"
|
||||
+#define CFG_LAUNCHER_ICON_DEFAULT "chakra-shield"
|
||||
|
||||
#endif /* CONFIGKEYS_H */
|
11
kdeplasma-applets-homerun/kdeplasma-applets-homerun.install
Normal file
11
kdeplasma-applets-homerun/kdeplasma-applets-homerun.install
Normal file
@ -0,0 +1,11 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in New Issue
Block a user