From 92bafb5f0efc526b1f83cd5fb9460443c4b13dca Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Aug 2012 00:01:47 +0000 Subject: Fri Aug 3 00:01:47 UTC 2012 --- community-testing/audex/PKGBUILD | 47 ++++++++++++++++++++++++++++++ community-testing/audex/audex.install | 12 ++++++++ community-testing/audex/gcc47.patch | 13 +++++++++ community-testing/audex/google_regex.patch | 14 +++++++++ 4 files changed, 86 insertions(+) create mode 100644 community-testing/audex/PKGBUILD create mode 100644 community-testing/audex/audex.install create mode 100644 community-testing/audex/gcc47.patch create mode 100644 community-testing/audex/google_regex.patch (limited to 'community-testing/audex') diff --git a/community-testing/audex/PKGBUILD b/community-testing/audex/PKGBUILD new file mode 100644 index 000000000..0fbf880a4 --- /dev/null +++ b/community-testing/audex/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 74660 2012-08-01 16:22:37Z andrea $ +# Maintainer: Laurent Carlier +# Contributor: Andrea Scarpino +# Contributor: mightyjaym +# Contributor: moostik + +pkgname=audex +pkgver=0.74b1 +pkgrel=4 +pkgdesc="A CDDA extraction tool with a ftp upload function for KDE" +arch=('i686' 'x86_64') +url="http://kde-apps.org/content/show.php?content=77125" +license=('GPL') +depends=('kdebase-runtime' 'libkcddb' 'libkcompactdisc' 'cdparanoia') +makedepends=('cmake' 'automoc4') +optdepends=('vorbis-tools: OGG encoder' + 'faac: MP4/M4A/AAC encoder' + 'flac: FLAC encoder' + 'lame: MP3 encoder') +install=${pkgname}.install +source=("ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.tar.xz" + "google_regex.patch" 'gcc47.patch') +md5sums=('20fdf9a0f89c08f44a151b6bdaab8782' + '77b33d8daead89d5f4f15b78a1cd1d55' + '64107bcf90e22910e57804be774822dd') + +build() { + # fix bug FS#25193 + patch -Np0 -i "${srcdir}"/google_regex.patch + + cd ${pkgname}-${pkgver} + patch -p1 -i "${srcdir}"/gcc47.patch + cd .. + + mkdir build + cd build + + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd ${srcdir}/build + make DESTDIR=${pkgdir} install +} diff --git a/community-testing/audex/audex.install b/community-testing/audex/audex.install new file mode 100644 index 000000000..81ce5c4b0 --- /dev/null +++ b/community-testing/audex/audex.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 +} diff --git a/community-testing/audex/gcc47.patch b/community-testing/audex/gcc47.patch new file mode 100644 index 000000000..3d0ccf024 --- /dev/null +++ b/community-testing/audex/gcc47.patch @@ -0,0 +1,13 @@ +--- audex-0.74b1.orig/utils/hashlist.cpp ++++ audex-0.74b1/utils/hashlist.cpp +@@ -15,7 +15,8 @@ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +- ++ ++#include + #include "hashlist.h" + + Hashlist::Hashlist() { + diff --git a/community-testing/audex/google_regex.patch b/community-testing/audex/google_regex.patch new file mode 100644 index 000000000..86917e66f --- /dev/null +++ b/community-testing/audex/google_regex.patch @@ -0,0 +1,14 @@ +--- audex-0.74b1/utils/coverfetcher.cpp 2011-01-15 12:06:25.000000000 +0100 ++++ audex-0.74b1/utils/coverfetcher_new.cpp 2011-07-20 18:43:37.554588883 +0200 +@@ -162,7 +162,10 @@ + cover_tbnids.clear(); + cover_thumbnails.clear(); + +- QRegExp rx("[\\s\\n]*[\\s\\n]*"); ++ QRegExp rx("[\\s\\n]*]+src=\"([^>]+)\">"); ++ QString html = xml; ++ html.replace( QLatin1String("&"), QLatin1String("&") ); ++ + rx.setMinimal(TRUE); + + int pos = 0; int i = 0; -- cgit v1.2.3-54-g00ecf