diff options
| -rw-r--r-- | testing/shntool/APKBUILD | 63 | ||||
| -rw-r--r-- | unmaintained/shntool/APKBUILD | 50 |
2 files changed, 63 insertions, 50 deletions
diff --git a/testing/shntool/APKBUILD b/testing/shntool/APKBUILD new file mode 100644 index 0000000000..531017f66b --- /dev/null +++ b/testing/shntool/APKBUILD @@ -0,0 +1,63 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch> +pkgname=shntool +pkgver=3.0.10 +pkgrel=1 +pkgdesc="A multi-purpose WAVE data processing and reporting utility" +url="http://www.etree.org/shnutils/shntool/" +arch="all" +license="GPL" +makedepends="sox" +subpackages="$pkgname-doc" +source="http://www.etree.org/shnutils/shntool/dist/src/shntool-$pkgver.tar.gz" + +builddir="$srcdir"/shntool-$pkgver + +build() { + cd "$builddir" + update_config_sub + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +check() { + # Check if shntools are operational + mkdir -p "$builddir/test" + cd "$builddir/test" + ln -s ../src/shntool shninfo + ln -s ../src/shntool shncue + ln -s ../src/shntool shnsplit + ln -s ../src/shntool shnjoin + ln -s ../src/shntool shncmp + sox -r 44100 -b 16 -n beat1.wav synth 0.4 sin 347 sin 357 vol 0.5 + sox -r 44100 -b 16 -n beat2.wav synth 0.5 sin 359 sin 357 vol 0.5 + sox -r 44100 -b 16 -n beat3.wav synth 0.6 sin 459 sin 438 vol 0.5 + ./shninfo beat1.wav | grep -q 70604 + ./shninfo beat2.wav | grep -q 88244 + ./shncue beat1.wav beat2.wav beat3.wav > joined.cue + ./shnjoin beat1.wav beat2.wav beat3.wav + ./shninfo joined.wav | grep -q 265820 + ./shnsplit -f joined.cue joined.wav + ./shninfo split-track01.wav | grep -q 70604 + ./shninfo split-track03.wav | grep -q 105884 + ./shncmp split-track01.wav beat1.wav + ./shncmp split-track02.wav beat2.wav + cd "$builddir" + rm -r test +} + +md5sums="5d41f8f42c3c15e3145a7a43539c3eae shntool-3.0.10.tar.gz" +sha256sums="74302eac477ca08fb2b42b9f154cc870593aec8beab308676e4373a5e4ca2102 shntool-3.0.10.tar.gz" +sha512sums="2150d7123860abb54a56a1615bda991ed3713d73c338723f28b7d01a63c49a47809be16dc57b5b4edeee1567b003f9a4b54945c1cd08440f9503d22b91eaa06d shntool-3.0.10.tar.gz" diff --git a/unmaintained/shntool/APKBUILD b/unmaintained/shntool/APKBUILD deleted file mode 100644 index ecdbdf91d2..0000000000 --- a/unmaintained/shntool/APKBUILD +++ /dev/null @@ -1,50 +0,0 @@ -# Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: -pkgname=shntool -pkgver=3.0.10 -pkgrel=0 -pkgdesc="A multi-purpose WAVE data processing and reporting utility" -url="http://www.etree.org/shnutils/shntool/" -arch="all" -license="GPL" -depends="" -depends_dev="" -makedepends="$depends_dev" -install="" -subpackages="$pkgname-doc" -source="http://www.etree.org/shnutils/shntool/dist/src/shntool-$pkgver.tar.gz" - -_builddir="$srcdir"/shntool-$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" - update_config_sub || 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 -} - -md5sums="5d41f8f42c3c15e3145a7a43539c3eae shntool-3.0.10.tar.gz" -sha256sums="74302eac477ca08fb2b42b9f154cc870593aec8beab308676e4373a5e4ca2102 shntool-3.0.10.tar.gz" -sha512sums="2150d7123860abb54a56a1615bda991ed3713d73c338723f28b7d01a63c49a47809be16dc57b5b4edeee1567b003f9a4b54945c1cd08440f9503d22b91eaa06d shntool-3.0.10.tar.gz" |
