summaryrefslogtreecommitdiff
path: root/community/cuetools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-10-21 01:08:10 -0700
committerroot <root@rshg054.dnsready.net>2013-10-21 01:08:10 -0700
commit61f20cbeb90ac877764e14b7c4e1c5c08b3e5383 (patch)
tree8fb05b655ad5450c255af4dfd869ea29756bdad5 /community/cuetools
parent6f2775d967e6db730957ea986826945c408431c3 (diff)
Mon Oct 21 01:07:41 PDT 2013
Diffstat (limited to 'community/cuetools')
-rw-r--r--community/cuetools/PKGBUILD42
-rw-r--r--community/cuetools/cuetag.patch37
-rw-r--r--community/cuetools/fix_build_with_automake-1.12.diff24
3 files changed, 48 insertions, 55 deletions
diff --git a/community/cuetools/PKGBUILD b/community/cuetools/PKGBUILD
index 439ce866c..1bb3325e1 100644
--- a/community/cuetools/PKGBUILD
+++ b/community/cuetools/PKGBUILD
@@ -1,33 +1,39 @@
-# $Id: PKGBUILD 64846 2012-02-18 17:42:48Z stativ $
+# $Id: PKGBUILD 98850 2013-10-20 09:41:43Z stativ $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=cuetools
-pkgver=1.3.1
-pkgrel=5
-pkgdesc="Set of utilities for working with cue files and toc files"
+pkgver=1.4.0
+pkgrel=1
+pkgdesc="Cue and toc file parsers and utilities"
arch=('i686' 'x86_64')
-url="http://developer.berlios.de/projects/cuetools/"
+url="https://github.com/svend/cuetools"
+#url="http://developer.berlios.de/projects/cuetools/"
license=('GPL')
depends=('glibc')
-source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz \
- cuetag.patch)
-md5sums=('45575f7a1bdc6615599fa6cb49845cca'
- '38969241a7b6ac88e2f1b46c3da0ecc2')
+source=("https://github.com/svend/cuetools/archive/${pkgver}.tar.gz"
+ "fix_build_with_automake-1.12.diff")
+md5sums=('4492dae2b3f9e077f6455a1f1cddef3b'
+ '67a3b32711d1a1f508be6ed0f1bdadf3')
-build() {
- cd "$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -Np1 < "$srcdir/fix_build_with_automake-1.12.diff" || true
- # fix cuetag
- patch -Np0 < "$srcdir"/cuetag.patch
- sed -i -e 's/--import-vc-from/--import-tags-from/' \
- -e 's/--remove-vc-all/--remove-all-tags/' extras/cuetag.sh
+ aclocal
+ autoheader
+ automake --force-missing --add-missing
+ autoconf
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr --mandir=/usr/share/man
+ ./configure --prefix=/usr
make
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
- install -m755 extras/cuetag.sh "$pkgdir"/usr/bin/cuetag.sh
}
diff --git a/community/cuetools/cuetag.patch b/community/cuetools/cuetag.patch
deleted file mode 100644
index cd41dcd56..000000000
--- a/community/cuetools/cuetag.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- extras/cuetag.sh 2006-09-06 14:24:47.000000000 -0400
-+++ extras/cuetag.sh 2007-01-26 00:13:23.000000000 -0500
-@@ -63,7 +63,7 @@
- (for field in $fields; do
- value=""
- for conv in `eval echo \\$$field`; do
-- value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file`
-+ value=`$CUEPRINT -n $1 -t "$conv\n" "$cue_file"`
-
- if [ -n "$value" ]; then
- echo "$field=$value"
-@@ -96,7 +96,7 @@
- for field in $fields; do
- value=""
- for conv in `eval echo \\$$field`; do
-- value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file`
-+ value=`$CUEPRINT -n $1 -t "$conv\n" "$cue_file"`
-
- if [ -n "$value" ]; then
- break
-@@ -141,14 +141,14 @@
- cue_file=$1
- shift
-
-- ntrack=`cueprint -d '%N' $cue_file`
-+ ntrack=`cueprint -d '%N' "$cue_file"`
- trackno=1
-
- if [ $# -ne $ntrack ]; then
- echo "warning: number of files does not match number of tracks"
- fi
-
-- for file in $@; do
-+ for file in "$@"; do
- case $file in
- *.[Ff][Ll][Aa][Cc])
- vorbis $trackno "$file"
diff --git a/community/cuetools/fix_build_with_automake-1.12.diff b/community/cuetools/fix_build_with_automake-1.12.diff
new file mode 100644
index 000000000..9090f32c3
--- /dev/null
+++ b/community/cuetools/fix_build_with_automake-1.12.diff
@@ -0,0 +1,24 @@
+From 761eba5b9b9c87a872a18b7ba4bf3d77a96e2157 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Horv=C3=A1th=20Bal=C3=A1zs?= <q@qroa.ch>
+Date: Tue, 15 Oct 2013 01:17:52 +0200
+Subject: [PATCH] Fix build with automake-1.12.
+
+---
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.ac b/configure.ac
+index f54bb92..9f36932 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -4,6 +4,7 @@ AC_PROG_CC
+ AC_PROG_INSTALL
+ AC_PROG_RANLIB
+ AM_PROG_LEX
++m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+ AC_PROG_YACC
+ AC_CONFIG_HEADERS([config.h])
+ AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile src/lib/Makefile src/tools/Makefile extras/Makefile])
+--
+1.8.4
+