Added cuetools v1.4.1

Added dam v0.2.6
Added shntool v3.0.10
This commit is contained in:
ayakael 2018-06-26 07:15:14 -08:00
commit ffd2b5eb5d
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026
3 changed files with 157 additions and 0 deletions

39
apk/cuetools/APKBUILD Normal file
View file

@ -0,0 +1,39 @@
# Maintainer: Antoine Martin <antoine.martin@pm.me>
# Based on PKGBUILD from Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=cuetools
pkgver=1.4.1
pkgrel=0
pkgdesc="Cue and toc file parsers and utilities"
arch='x86_64'
url="https://github.com/svend/cuetools"
#url="http://developer.berlios.de/projects/cuetools/"
license='GPL'
depends='musl'
makedepends='automake autoconf byacc flex'
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/svend/cuetools/archive/${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
aclocal
autoheader
automake --force-missing --add-missing
autoconf
}
build() {
cd "$builddir"
./configure --prefix=/usr
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="dc81e6ec756f9d040dd913e8f340be136d68619caa24bdec21364f94b4fc0ffcbcf21325c7fd53c9230d6d70a2856b45a32c5ca7f41ec76fa47298bf226d959e cuetools-1.4.1.tar.gz"

55
apk/dam/APKBUILD Normal file
View file

@ -0,0 +1,55 @@
# Maintainer: Antoine Martin <antoine.martin@protonmail.com>
pkgname=dam
pkgver=0.2.6
pkgrel=0
pkgdesc="A digital audio manager built very specifically for my git-annex backed music collection"
url="https://github.com/ayakael/dam"
arch="noarch"
license="GPL3"
depends="bash shntool gawk sed grep bc git-annex cuetools findutils coreutils git ffmpeg imagemagick flac p7zip"
makedepends="bash coreutils findutils gawk git"
source="$pkgname-$pkgver.tar.gz"
_giturl="https://github.com/ayakael/dam"
_gittag="$pkgver"
builddir="$srcdir/$pkgname"
options="!check"
snapshot() {
mkdir -p "$srcdir"
cd "${SRCDEST:-$srcdir}"
if ! [ -d $pkgname.git ]; then
git clone $_giturl $pkgname.git || return 1
cd $pkgname.git
else
cd $pkgname.git
git fetch || return 1
fi
echo "Checking out"
git checkout $_gittag
echo "Repo archive"
git archive --prefix="$pkgname/" -o dam.tar --format "tar" $_gittag
echo "Submod update"
git submodule update --init
cd bunc
echo "Submo archive"
git archive --prefix="$pkgname/bunc/" --format="tar" -o "../bunc.tar" "master"
cd ..
tar --concatenate --file dam.tar bunc.tar
gzip dam.tar -c > "$SRCDEST"/$pkgname-$pkgver.tar.gz
ln -s "$SRCDEST"/$pkgname-$pkgver.tar.gz "$startdir"/$pkgname-$pkgver.tar.gz
}
build() {
cd "$builddir"
./build.sh
}
package() {
cd "$builddir"
install -Dm755 ./dam "$pkgdir"/usr/bin/dam
}
sha512sums="e0bcf717e9c0f94f2311429267760cd39c6d454f31dcc89466170732f7d42551cf7fab730ea7a406deab04c17d205002701d9cd55dd4e29ede08fd6bd7f6f708 dam-0.2.6.tar.gz

63
apk/shntool/APKBUILD Normal file
View file

@ -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"