summaryrefslogtreecommitdiff
path: root/community/audex
diff options
context:
space:
mode:
Diffstat (limited to 'community/audex')
-rw-r--r--community/audex/PKGBUILD13
-rw-r--r--community/audex/google_regex.patch14
2 files changed, 23 insertions, 4 deletions
diff --git a/community/audex/PKGBUILD b/community/audex/PKGBUILD
index 0cab5542d..a1d238750 100644
--- a/community/audex/PKGBUILD
+++ b/community/audex/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 37808 2011-01-17 23:22:59Z lcarlier $
+# $Id: PKGBUILD 56794 2011-10-12 23:16:45Z lcarlier $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: mightyjaym <jmambrosino@gmail.com>
# Contributor: moostik <mooostik_at_gmail.com>
pkgname=audex
pkgver=0.74b1
-pkgrel=1
+pkgrel=2
pkgdesc="A CDDA extraction tool with a ftp upload function for KDE"
arch=('i686' 'x86_64' 'mips64el')
url="http://kde.maniatek.com/audex/"
@@ -17,11 +17,16 @@ optdepends=('vorbis-tools: OGG encoder'
'flac: FLAC encoder'
'lame: MP3 encoder')
install=${pkgname}.install
-source=("http://kde.maniatek.com/audex/files/${pkgname}-${pkgver}.tar.xz")
-md5sums=('20fdf9a0f89c08f44a151b6bdaab8782')
+source=("http://kde.maniatek.com/audex/files/${pkgname}-${pkgver}.tar.xz"
+ "google_regex.patch")
+md5sums=('20fdf9a0f89c08f44a151b6bdaab8782'
+ '77b33d8daead89d5f4f15b78a1cd1d55')
build() {
cd ${srcdir}
+ # fix bug FS#25193
+ patch -Np0 -i google_regex.patch
+
mkdir build
cd build
diff --git a/community/audex/google_regex.patch b/community/audex/google_regex.patch
new file mode 100644
index 000000000..86917e66f
--- /dev/null
+++ b/community/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("<a\\shref=(\\/imgres\\?imgurl=[a-zA-Z0-9\\&\\_\\%\\/\\=\\.\\:\\-\\?]+)>[\\s\\n]*<img\\ssrc=([a-zA-Z0-9\\&\\_\\%\\/\\=\\.\\:\\-\\?]+).*>[\\s\\n]*</a>");
++ QRegExp rx("<a\\shref=\"(\\/imgres\\?imgurl=[^\"]+)\">[\\s\\n]*<img[^>]+src=\"([^>]+)\"></a>");
++ QString html = xml;
++ html.replace( QLatin1String("&amp;"), QLatin1String("&") );
++
+ rx.setMinimal(TRUE);
+
+ int pos = 0; int i = 0;