mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-04-24 23:47:17 +00:00
added colibri-line
This commit is contained in:
parent
b738c613b4
commit
1b66f563b4
37
colibri-line/PKGBUILD
Normal file
37
colibri-line/PKGBUILD
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# Contributor: t3ddy <t3ddy1988 "at" gmail {dot} com>
|
||||||
|
# Contributor: k3vin <kev "at" k3v {dot} in>
|
||||||
|
|
||||||
|
pkgname=colibri
|
||||||
|
pkgver=0.3.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Colibri provides an alternative to KDE4 Plasma notifications."
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://kde-apps.org/content/show.php/Colibri?content=117147"
|
||||||
|
provides=('notification-daemon')
|
||||||
|
license=('GPL')
|
||||||
|
depends=('kdebase-workspace>=4.4')
|
||||||
|
makedepends=('gcc' 'cmake' 'automoc4')
|
||||||
|
install=colibri.install
|
||||||
|
source=(http://download.kde.org/stable/${pkgname}/${pkgname}-${pkgver}.tar.bz2
|
||||||
|
fix-line.patch)
|
||||||
|
md5sums=('6b39ca00645d8557886577e1366deecd'
|
||||||
|
'ed9f744d6aa4033797914edc82846452')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir"
|
||||||
|
patch -p0 -i "$srcdir/fix-line.patch"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/${pkgname}-${pkgver}"
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/${pkgname}-${pkgver}/build"
|
||||||
|
|
||||||
|
make DESTDIR="$pkgdir/" install
|
||||||
|
}
|
13
colibri-line/colibri.install
Normal file
13
colibri-line/colibri.install
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
post_install() {
|
||||||
|
echo ""
|
||||||
|
echo "Colibri notifications works with 4.4 and higher"
|
||||||
|
echo ""
|
||||||
|
echo "Enabling Colibri notifications can be a bit tricky:
|
||||||
|
- Right-click on the systemtray applet
|
||||||
|
- Select \"System Tray Settings\"
|
||||||
|
- Uncheck the \"Application notifications\" box"
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install $1
|
||||||
|
}
|
12
colibri-line/fix-line.patch
Normal file
12
colibri-line/fix-line.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -ruN colibri-0.3.0.orig/app/notificationwidget.cpp colibri-0.3.0/app/notificationwidget.cpp
|
||||||
|
--- colibri-0.3.0.orig/app/notificationwidget.cpp 2013-05-14 19:30:28.000000000 +0400
|
||||||
|
+++ colibri-0.3.0/app/notificationwidget.cpp 2014-01-24 02:35:26.653473727 +0400
|
||||||
|
@@ -311,7 +311,7 @@
|
||||||
|
text = "<b>" + mSummary + "</b>";
|
||||||
|
}
|
||||||
|
if (!mBody.isEmpty()) {
|
||||||
|
- text += mBody;
|
||||||
|
+ text += mBody.replace(QString("\n"), QString("<br>"));
|
||||||
|
}
|
||||||
|
mTextLabel->setText(text);
|
||||||
|
mTextLabel->resize(mTextLabel->preferredSize());
|
Loading…
Reference in New Issue
Block a user