porting homerun to testing, replace icon with chakra-shield

This commit is contained in:
abveritas 2013-02-11 22:59:25 +00:00
parent ee6b21298f
commit 14abe77915
3 changed files with 60 additions and 0 deletions

View 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"
}

View 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 */

View File

@ -0,0 +1,11 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}