initial import
This commit is contained in:
65
shntool/PKGBUILD
Normal file
65
shntool/PKGBUILD
Normal file
@@ -0,0 +1,65 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
_pkgname=shntool-libre
|
||||
pkgname=shntool
|
||||
pkgver=3.0.10
|
||||
_debver=3.0.10
|
||||
_debrel=1
|
||||
pkgrel=1
|
||||
pkgdesc="A multi-purpose WAVE data processing and reporting utility"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://shnutils.freeshell.org/shntool/"
|
||||
license=('GPL-2')
|
||||
options=(!emptydirs)
|
||||
depends=('glibc')
|
||||
makedepends=('quilt')
|
||||
optdepends=('flac: support for flac format'
|
||||
'wavpack: support for wv format')
|
||||
mksource=("https://deb.debian.org/debian/pool/main/s/shntool/shntool_${pkgver}.orig.tar.gz")
|
||||
source=("https://repo.hyperbola.info:50000/sources/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.sig}
|
||||
"https://deb.debian.org/debian/pool/main/s/shntool/shntool_3.0.10-1.debian.tar.xz"
|
||||
"libre.patch")
|
||||
mksha512sums=('2150d7123860abb54a56a1615bda991ed3713d73c338723f28b7d01a63c49a47809be16dc57b5b4edeee1567b003f9a4b54945c1cd08440f9503d22b91eaa06d')
|
||||
sha512sums=('dc0a8593fb570679f00fa77db8ac7e0846492995a8a1e7826b3481688c4c7ccbb33cf00c9f486ca6cff4b17c07898db768ebdda791348e5f95cfe351ae30d1e2'
|
||||
'SKIP'
|
||||
'4b30c683dbe2ca202bf6673889052710e33ca5c5a74b1365cc5063f409641254021f55d55663aa15f71857c02173909ce9c60966cc696d87496db1dbd5634313'
|
||||
'e856faa83658c80199e702949211a8e2b8d1c15ea4d20ef69b13df8ea5994f44cbcbac2425a6641608c1d02e5039ba2837624bcab270cfe23c28af37de13f971')
|
||||
validpgpkeys=('684D54A189305A9CC95446D36B888913DDB59515') # Márcio Silva
|
||||
|
||||
mksource() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}
|
||||
|
||||
# remove unfree codecs for APE, OFR and LPAC
|
||||
rm "${srcdir}/${pkgname}-${pkgver}/src/"{format_ape.c,format_ofr.c,format_lpac.c}
|
||||
rm "${srcdir}/${pkgname}-${pkgver}/"configure
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
|
||||
# patch for libre version without unfree formats and codecs
|
||||
patch -Np1 -i "${srcdir}/libre.patch"
|
||||
autoreconf -vfi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
128
shntool/libre.patch
Normal file
128
shntool/libre.patch
Normal file
@@ -0,0 +1,128 @@
|
||||
--- a/configure.ac 2009-03-30 07:55:33.000000000 +0200
|
||||
+++ b/configure.ac 2022-01-14 01:00:11.938929793 +0100
|
||||
@@ -27,7 +27,7 @@
|
||||
ac_build_modes="len fix hash pad join split cat cmp cue conv info strip gen trim"
|
||||
|
||||
dnl default file formats - used if --with-formats is not specified
|
||||
-ac_build_formats="wav aiff shn flac ape alac tak ofr tta als wv lpac la mkw bonk kxs cust term null"
|
||||
+ac_build_formats="wav aiff shn flac alac tak tta als wv la mkw bonk kxs cust term null"
|
||||
|
||||
ac_alternate_modes=
|
||||
ac_alternate_formats=
|
||||
@@ -101,10 +101,7 @@
|
||||
format_exists=true
|
||||
case $format in
|
||||
aiff ) format_aiff=true ;;
|
||||
- ape ) format_ape=true ;;
|
||||
flac ) format_flac=true ;;
|
||||
- lpac ) format_lpac=true ;;
|
||||
- ofr ) format_ofr=true ;;
|
||||
shn ) format_shn=true ;;
|
||||
wv ) format_wv=true ;;
|
||||
alac ) format_alac=true ;;
|
||||
@@ -152,18 +149,6 @@
|
||||
AC_CHECK_PROG([SOX],[sox],[yes],[no (install for aiff support)])
|
||||
fi
|
||||
|
||||
-if test x$format_ape = xtrue; then
|
||||
- AC_CHECK_PROG([MAC],[mac],[yes],[no (install for ape support)])
|
||||
-fi
|
||||
-
|
||||
-if test x$format_ofr = xtrue; then
|
||||
- AC_CHECK_PROG([OPTIMFROG],[ofr],[yes],[no (install for ofr support)])
|
||||
-fi
|
||||
-
|
||||
-if test x$format_lpac = xtrue; then
|
||||
- AC_CHECK_PROG([LPAC],[lpac],[yes],[no (install for lpac support)])
|
||||
-fi
|
||||
-
|
||||
if test x$format_wv = xtrue; then
|
||||
AC_CHECK_PROG([WAVPACK],[wvunpack],[yes],[no (install for wv support)])
|
||||
fi
|
||||
--- a/src/Makefile.am 2008-02-19 00:11:46.000000000 +0100
|
||||
+++ b/src/Makefile.am 2022-01-14 00:46:28.339812684 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
CORE_SOURCES = core_convert.c core_fileio.c core_format.c core_mode.c core_module.c core_output.c core_shntool.c core_wave.c
|
||||
GLUE_SOURCES = glue_modes.c glue_formats.c
|
||||
MODE_SOURCES_ALL = mode_cat.c mode_cmp.c mode_conv.c mode_cue.c mode_fix.c mode_gen.c mode_hash.c mode_info.c mode_join.c mode_len.c mode_pad.c mode_split.c mode_strip.c mode_trim.c
|
||||
-FORMAT_SOURCES_ALL = format_aiff.c format_alac.c format_als.c format_ape.c format_bonk.c format_cust.c format_flac.c format_kxs.c format_la.c format_lpac.c format_mkw.c format_null.c format_ofr.c format_shn.c format_tak.c format_term.c format_tta.c format_wav.c format_wv.c
|
||||
+FORMAT_SOURCES_ALL = format_aiff.c format_alac.c format_als.c format_bonk.c format_cust.c format_flac.c format_kxs.c format_la.c format_mkw.c format_null.c format_shn.c format_tak.c format_term.c format_tta.c format_wav.c format_wv.c
|
||||
|
||||
MODE_ALIASES_ALL = $(shell echo $(MODE_SOURCES_ALL) | sed -e 's/mode_//g' -e 's/\.c//g')
|
||||
MODE_ALIASES = @MODES_CONFIGURED@
|
||||
--- a/src/Makefile.in 2009-03-30 07:55:58.000000000 +0200
|
||||
+++ b/src/Makefile.in 2022-01-14 00:50:05.434851822 +0100
|
||||
@@ -103,7 +103,6 @@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LN_S = @LN_S@
|
||||
-LPAC = @LPAC@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAC = @MAC@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
@@ -182,7 +181,7 @@
|
||||
CORE_SOURCES = core_convert.c core_fileio.c core_format.c core_mode.c core_module.c core_output.c core_shntool.c core_wave.c
|
||||
GLUE_SOURCES = glue_modes.c glue_formats.c
|
||||
MODE_SOURCES_ALL = mode_cat.c mode_cmp.c mode_conv.c mode_cue.c mode_fix.c mode_gen.c mode_hash.c mode_info.c mode_join.c mode_len.c mode_pad.c mode_split.c mode_strip.c mode_trim.c
|
||||
-FORMAT_SOURCES_ALL = format_aiff.c format_alac.c format_als.c format_ape.c format_bonk.c format_cust.c format_flac.c format_kxs.c format_la.c format_lpac.c format_mkw.c format_null.c format_ofr.c format_shn.c format_tak.c format_term.c format_tta.c format_wav.c format_wv.c
|
||||
+FORMAT_SOURCES_ALL = format_aiff.c format_alac.c format_als.c format_bonk.c format_cust.c format_flac.c format_kxs.c format_la.c format_mkw.c format_null.c format_shn.c format_tak.c format_term.c format_tta.c format_wav.c format_wv.c
|
||||
MODE_ALIASES_ALL = $(shell echo $(MODE_SOURCES_ALL) | sed -e 's/mode_//g' -e 's/\.c//g')
|
||||
MODE_ALIASES = @MODES_CONFIGURED@
|
||||
MODULE_OBJS = @MODE_OBJS@ @FORMAT_OBJS@
|
||||
@@ -270,16 +269,13 @@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_aiff.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_alac.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_als.Po@am__quote@
|
||||
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_ape.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_bonk.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_cust.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_flac.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_kxs.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_la.Po@am__quote@
|
||||
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_lpac.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_mkw.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_null.Po@am__quote@
|
||||
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_ofr.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_shn.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_tak.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_term.Po@am__quote@
|
||||
--- a/man/shntool.1 2009-03-30 07:59:25.000000000 +0200
|
||||
+++ b/man/shntool.1 2022-01-15 00:10:14.587805825 +0100
|
||||
@@ -133,13 +133,6 @@
|
||||
.br
|
||||
<http://flac.sourceforge.net/>
|
||||
.TP
|
||||
-.I ape
|
||||
-Monkey's Audio Compressor (via 'mac'):
|
||||
-.br
|
||||
-<http://www.monkeysaudio.com/>
|
||||
-.br
|
||||
-<http://supermmx.org/linux/mac/>
|
||||
-.TP
|
||||
.I alac
|
||||
Apple Lossless Audio Codec (via 'alac'):
|
||||
.br
|
||||
@@ -150,11 +143,6 @@
|
||||
.br
|
||||
<http://www.thbeck.de/Tak/Tak.html>
|
||||
.TP
|
||||
-.I ofr
|
||||
-OptimFROG Lossless WAVE Audio Coder (via 'ofr'):
|
||||
-.br
|
||||
-<http://www.losslessaudio.org/>
|
||||
-.TP
|
||||
.I tta
|
||||
TTA Lossless Audio Codec (via 'ttaenc'):
|
||||
.br
|
||||
@@ -172,11 +160,6 @@
|
||||
.br
|
||||
<http://www.wavpack.com/>
|
||||
.TP
|
||||
-.I lpac
|
||||
-Lossless Predictive Audio Compression (via 'lpac'):
|
||||
-.br
|
||||
-<http://www.nue.tu\-berlin.de/wer/liebchen/lpac.html>
|
||||
-.TP
|
||||
.I la
|
||||
Lossless Audio (via 'la'):
|
||||
.br
|
||||
Reference in New Issue
Block a user