summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordanitool2015-11-22 20:03:16 +0100
committerdanitool2015-11-22 20:03:16 +0100
commit9d10e3582348cd690a0bd897a86b012938774c9e (patch)
tree5025d4d0a66969782ee131905bc6f7d0263d910e
downloadaur-9d10e3582348cd690a0bd897a86b012938774c9e.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD39
-rw-r--r--kaffeine-1.2.2-gcc4.7.patch32
-rw-r--r--kaffeine.install12
4 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..be948a9e6f2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = kaffeine-legacy
+ pkgdesc = KDE media player. Old 1.2.2 version using Xine frontend
+ pkgver = 1.2.2
+ pkgrel = 5
+ url = http://kaffeine.kde.org
+ install = kaffeine.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = cmake
+ makedepends = automoc4
+ depends = kdebase-runtime
+ depends = xine-lib
+ source = http://downloads.sourceforge.net/kaffeine-legacy/kaffeine-legacy-1.2.2.tar.gz
+ source = kaffeine-1.2.2-gcc4.7.patch
+ md5sums = 690e48d2e5fe123887109aa9b1bc1c31
+ md5sums = 48afe5ec99b38fe02782db57a847033f
+
+pkgname = kaffeine-legacy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7f075bc705e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: danitool <dgcbueu@gmail.com>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+pkgname=kaffeine-legacy
+pkgver=1.2.2
+pkgrel=5
+pkgdesc='KDE media player. Old 1.2.2 version using Xine frontend'
+license=('GPL')
+arch=('i686' 'x86_64')
+url="http://kaffeine.kde.org"
+depends=('kdebase-runtime' 'xine-lib')
+makedepends=('cmake' 'automoc4')
+install=kaffeine.install
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ kaffeine-1.2.2-gcc4.7.patch)
+md5sums=('690e48d2e5fe123887109aa9b1bc1c31'
+ '48afe5ec99b38fe02782db57a847033f')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 -i "${srcdir}/kaffeine-1.2.2-gcc4.7.patch"
+ sed -i -e '2aINCLUDE(CheckIncludeFiles)' CMakeLists.txt
+}
+
+build() {
+ mkdir -p build
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
diff --git a/kaffeine-1.2.2-gcc4.7.patch b/kaffeine-1.2.2-gcc4.7.patch
new file mode 100644
index 00000000000..e74563e0bc6
--- /dev/null
+++ b/kaffeine-1.2.2-gcc4.7.patch
@@ -0,0 +1,32 @@
+commit 2da9df1e67004c3cfa879578c351300a99f23da1
+Author: Christoph Pfister <christophpfister@gmail.com>
+Date: Wed Apr 4 21:22:09 2012 +0200
+
+ fix build for gcc 4.7
+
+diff --git a/src/dvb/dvbepg.cpp b/src/dvb/dvbepg.cpp
+index 7fc8f68..e70d8b8 100644
+--- a/src/dvb/dvbepg.cpp
++++ b/src/dvb/dvbepg.cpp
+@@ -690,15 +690,15 @@ void AtscEpgFilter::processEitSection(const char *data, int size)
+ // 1980-01-06T000000 minus 15 secs (= UTC - GPS in 2011)
+ QDateTime baseDateTime = QDateTime(QDate(1980, 1, 5), QTime(23, 59, 45), Qt::UTC);
+
+- for (AtscEitSectionEntry entry = eitSection.entries(); (entryCount > 0) && entry.isValid();
+- --entryCount, entry.advance()) {
++ for (AtscEitSectionEntry eitEntry = eitSection.entries();
++ (entryCount > 0) && eitEntry.isValid(); --entryCount, eitEntry.advance()) {
+ DvbEpgEntry epgEntry;
+ epgEntry.channel = channel;
+- epgEntry.begin = baseDateTime.addSecs(entry.startTime());
+- epgEntry.duration = QTime().addSecs(entry.duration());
+- epgEntry.title = entry.title();
++ epgEntry.begin = baseDateTime.addSecs(eitEntry.startTime());
++ epgEntry.duration = QTime().addSecs(eitEntry.duration());
++ epgEntry.title = eitEntry.title();
+
+- quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(entry.eventId()));
++ quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(eitEntry.eventId()));
+ DvbSharedEpgEntry entry = epgEntries.value(id);
+
+ if (entry.isValid() && (entry->channel == epgEntry.channel) &&
diff --git a/kaffeine.install b/kaffeine.install
new file mode 100644
index 00000000000..5c501dc4991
--- /dev/null
+++ b/kaffeine.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}