diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-10-07 22:07:45 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-10-07 22:07:45 +0200 |
commit | cf90bd398764cc8f5f5603a28a6aa23c53fa274a (patch) | |
tree | fb889ba22caeb572f68237f882ba6a299f9c9568 /testing/cuetools | |
parent | 7bb68bffd143a591c00d38759e2da7991e40b8ab (diff) | |
download | aports-cf90bd398764cc8f5f5603a28a6aa23c53fa274a.tar.bz2 aports-cf90bd398764cc8f5f5603a28a6aa23c53fa274a.tar.xz |
testing/cuetools: new aport
Diffstat (limited to 'testing/cuetools')
-rw-r--r-- | testing/cuetools/APKBUILD | 63 | ||||
-rw-r--r-- | testing/cuetools/cuetag-fix_spaces.patch | 46 | ||||
-rw-r--r-- | testing/cuetools/fix_build_with_automake-1.12.patch | 24 |
3 files changed, 133 insertions, 0 deletions
diff --git a/testing/cuetools/APKBUILD b/testing/cuetools/APKBUILD new file mode 100644 index 0000000000..906dc4e15c --- /dev/null +++ b/testing/cuetools/APKBUILD @@ -0,0 +1,63 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=cuetools +pkgver=1.4.0 +pkgrel=0 +pkgdesc="Cue and toc file parsers and utilities" +url="https://github.com/svend/cuetools" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev automake autoconf libtool byacc flex" +install="" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/svend/cuetools/archive/$pkgver.tar.gz + fix_build_with_automake-1.12.patch + cuetag-fix_spaces.patch" + +_builddir=$srcdir/$pkgname-$pkgver + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + aclocal || return 1 + autoheader || return 1 + automake --force-missing --add-missing || return 1 + autoconf || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="4492dae2b3f9e077f6455a1f1cddef3b cuetools-1.4.0.tar.gz +67a3b32711d1a1f508be6ed0f1bdadf3 fix_build_with_automake-1.12.patch +60f4aba26e529e48dbedd2adef917117 cuetag-fix_spaces.patch" +sha256sums="5dc86e9736929757b338827efa0ecae1b2fcee2273debc718511749a4178ddf6 cuetools-1.4.0.tar.gz +12019dc267a7a0f32197928af6b2d50fd23cb5eb34ac8acc2f552bc0f8eef651 fix_build_with_automake-1.12.patch +93768b1e8f458cf07bf643bd8d330c3907a6a73db2cb1f55a0e99da67776ff26 cuetag-fix_spaces.patch" +sha512sums="338909d22e3cc65ddd8e411ca2dbcf198606c5f34bc67867dcf0a54d48bf0d1339f2a26a18aeeeca968ce1452d0ea0c19a3c3609a2593e1d8b6bb432a6113a75 cuetools-1.4.0.tar.gz +71f397f7f514832e9109a0762631f7ea0b7ada95a6ea44eb0ae4c2d035efa672d0a29e3b3948b6f31dd35c115857b874f82e5a11e63248a048b83566d489148c fix_build_with_automake-1.12.patch +301b1fcb9a5eb1e576db29de9421af5d1500a4fe88b16cf7376ee3ca1839ea267a2c6e0695255312e8e4ab5f18a6db1af75d2045704a93c6dd33e3eaac1b83db cuetag-fix_spaces.patch" diff --git a/testing/cuetools/cuetag-fix_spaces.patch b/testing/cuetools/cuetag-fix_spaces.patch new file mode 100644 index 0000000000..f240e9d375 --- /dev/null +++ b/testing/cuetools/cuetag-fix_spaces.patch @@ -0,0 +1,46 @@ +From 21ee6cc40f02693928efbc4f3beeb681950c16b5 Mon Sep 17 00:00:00 2001 +From: Svend Sorensen <svend@ciffer.net> +Date: Sat, 23 Nov 2013 17:23:01 -0800 +Subject: [PATCH] cuetag: Fix handling of spaces in file names + +Fixes #14 +--- + src/tools/cuetag.sh | 9 ++++----- + 1 file changed, 4 insertions(+), 5 deletions(-) + +diff --git a/src/tools/cuetag.sh b/src/tools/cuetag.sh +index f26fa20..448920f 100755 +--- a/src/tools/cuetag.sh ++++ b/src/tools/cuetag.sh +@@ -182,16 +182,15 @@ main() + ntrack=$(cueprint -d '%N' "$cue_file") + trackno=1 + +- FILES= FIELDS= ++ NUM_FILES=0 FIELDS= + for arg in "$@"; do + case "$arg" in +- *.*) FILES="$FILES $arg";; ++ *.*) NUM_FILES=$(expr $NUM_FILES + 1);; + *) FIELDS="$FIELDS $arg";; + esac + done + +- set -- $FILES +- if [ $# -ne $ntrack ]; then ++ if [ $NUM_FILES -ne $ntrack ]; then + echo "warning: number of files does not match number of tracks" + fi + +@@ -209,7 +208,7 @@ main() + *.[Tt][Xx][Tt]) + vorbis $trackno "$file" + ;; +- *) ++ *.*) + echo "$file: uknown file type" + ;; + esac +-- +1.8.5.1 + diff --git a/testing/cuetools/fix_build_with_automake-1.12.patch b/testing/cuetools/fix_build_with_automake-1.12.patch new file mode 100644 index 0000000000..9090f32c3d --- /dev/null +++ b/testing/cuetools/fix_build_with_automake-1.12.patch @@ -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 + |