summaryrefslogtreecommitdiff
path: root/libre/audex-libre
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-03-13 20:40:17 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-03-13 20:40:17 -0300
commit137ed524405a17ce771dcf290d0dca45ae606fc5 (patch)
treeeb85c0f9862aefb7009ba66759675633e85c78ee /libre/audex-libre
parent477f2663906e4c753ab1ecb841f44eca5423f965 (diff)
downloadabslibre-137ed524405a17ce771dcf290d0dca45ae606fc5.tar.gz
abslibre-137ed524405a17ce771dcf290d0dca45ae606fc5.tar.bz2
abslibre-137ed524405a17ce771dcf290d0dca45ae606fc5.zip
audex-libre: adding new package to [libre] repo
Diffstat (limited to 'libre/audex-libre')
-rw-r--r--libre/audex-libre/PKGBUILD49
-rw-r--r--libre/audex-libre/audex.install12
-rw-r--r--libre/audex-libre/gcc47.patch13
-rw-r--r--libre/audex-libre/google_regex.patch14
4 files changed, 88 insertions, 0 deletions
diff --git a/libre/audex-libre/PKGBUILD b/libre/audex-libre/PKGBUILD
new file mode 100644
index 000000000..413c11461
--- /dev/null
+++ b/libre/audex-libre/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym@gmail.com>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: mightyjaym <jmambrosino@gmail.com>
+# Contributor: moostik <mooostik_at_gmail.com>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+_pkgname=audex
+pkgname=audex-libre
+pkgver=0.77b1
+pkgrel=1
+pkgdesc="A CDDA extraction tool with a ftp upload function for KDE (without nonfree faac recommendation)"
+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'
+ 'flac: FLAC encoder'
+ 'lame: MP3 encoder')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+install=${_pkgname}.install
+#source=("ftp://ftp.archlinux.org/other/community/${_pkgname}/${_pkgname}-${pkgver}.tar.xz"
+source=("http://kde.maniatek.com/${_pkgname}/files/${_pkgname}-${pkgver}.tar.xz"
+ 'gcc47.patch')
+md5sums=('1f3df64b60b15315e958e3e3b151fe92'
+ '64107bcf90e22910e57804be774822dd')
+
+build() {
+ 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/libre/audex-libre/audex.install b/libre/audex-libre/audex.install
new file mode 100644
index 000000000..81ce5c4b0
--- /dev/null
+++ b/libre/audex-libre/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/libre/audex-libre/gcc47.patch b/libre/audex-libre/gcc47.patch
new file mode 100644
index 000000000..3d0ccf024
--- /dev/null
+++ b/libre/audex-libre/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 <http://www.gnu.org/licenses/>.
+ */
+-
++
++#include <unistd.h>
+ #include "hashlist.h"
+
+ Hashlist::Hashlist() {
+
diff --git a/libre/audex-libre/google_regex.patch b/libre/audex-libre/google_regex.patch
new file mode 100644
index 000000000..86917e66f
--- /dev/null
+++ b/libre/audex-libre/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;