summaryrefslogtreecommitdiff
path: root/manualPorts/shntool
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-08 21:52:55 +0100
committerErich Eckner <git@eckner.net>2019-12-08 21:52:55 +0100
commitc51d03261ea2ece10a60dcaf164de70fc52025f0 (patch)
treea557af52fe3b08ff3460a74811a6b4623c3e3318 /manualPorts/shntool
parent37b843f0b9bd4e2b02acc26011a76891db2913dd (diff)
downloadcrux-ports-c51d03261ea2ece10a60dcaf164de70fc52025f0.tar.xz
shntool new
Diffstat (limited to 'manualPorts/shntool')
-rw-r--r--manualPorts/shntool/.footprint21
-rw-r--r--manualPorts/shntool/.md5sum3
-rw-r--r--manualPorts/shntool/.signature7
-rw-r--r--manualPorts/shntool/Pkgfile22
-rw-r--r--manualPorts/shntool/shntool-3.0.10-large-size.diff22
-rw-r--r--manualPorts/shntool/shntool-3.0.10-large-times.diff39
6 files changed, 114 insertions, 0 deletions
diff --git a/manualPorts/shntool/.footprint b/manualPorts/shntool/.footprint
new file mode 100644
index 0000000..7c174e1
--- /dev/null
+++ b/manualPorts/shntool/.footprint
@@ -0,0 +1,21 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/shncat -> shntool
+lrwxrwxrwx root/root usr/bin/shncmp -> shntool
+lrwxrwxrwx root/root usr/bin/shnconv -> shntool
+lrwxrwxrwx root/root usr/bin/shncue -> shntool
+lrwxrwxrwx root/root usr/bin/shnfix -> shntool
+lrwxrwxrwx root/root usr/bin/shngen -> shntool
+lrwxrwxrwx root/root usr/bin/shnhash -> shntool
+lrwxrwxrwx root/root usr/bin/shninfo -> shntool
+lrwxrwxrwx root/root usr/bin/shnjoin -> shntool
+lrwxrwxrwx root/root usr/bin/shnlen -> shntool
+lrwxrwxrwx root/root usr/bin/shnpad -> shntool
+lrwxrwxrwx root/root usr/bin/shnsplit -> shntool
+lrwxrwxrwx root/root usr/bin/shnstrip -> shntool
+-rwxr-xr-x root/root usr/bin/shntool
+lrwxrwxrwx root/root usr/bin/shntrim -> shntool
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/shntool.1.gz
diff --git a/manualPorts/shntool/.md5sum b/manualPorts/shntool/.md5sum
new file mode 100644
index 0000000..54d56f1
--- /dev/null
+++ b/manualPorts/shntool/.md5sum
@@ -0,0 +1,3 @@
+4265935ef1d684a4b49041278ffda7de shntool-3.0.10-large-size.diff
+6f0d61ddbf8cbee5c0b51a99e987ddda shntool-3.0.10-large-times.diff
+5d41f8f42c3c15e3145a7a43539c3eae shntool-3.0.10.tar.gz
diff --git a/manualPorts/shntool/.signature b/manualPorts/shntool/.signature
new file mode 100644
index 0000000..740250c
--- /dev/null
+++ b/manualPorts/shntool/.signature
@@ -0,0 +1,7 @@
+untrusted comment: verify with /etc/ports/deepthought.pub
+RWQxCptPusLGGq8zMP67CuX5npIbSbC5UhyiH5WSPoiWlc6kPpFMcrDBBWAbmW0BMWdumB39ZX7J1jCsYkp0QQEnhO1jnu5jMw8=
+SHA256 (Pkgfile) = 008977d7777b35b9511a904085bc2a628df3933dc5ad9bceda14b2d26f681e58
+SHA256 (.footprint) = f2aa7954924d2609d9770a84aa470d182d65645b7797d16be76d140190ac673d
+SHA256 (shntool-3.0.10.tar.gz) = 74302eac477ca08fb2b42b9f154cc870593aec8beab308676e4373a5e4ca2102
+SHA256 (shntool-3.0.10-large-size.diff) = 605f2030112e1ed6b68001d97a2ea839b00328995bbd795850fb2595f5797c68
+SHA256 (shntool-3.0.10-large-times.diff) = 418f9cc575e9d9964ee85819b5db7b38108d2b19a32459ad5e9b5c19d5296292
diff --git a/manualPorts/shntool/Pkgfile b/manualPorts/shntool/Pkgfile
new file mode 100644
index 0000000..0f146f4
--- /dev/null
+++ b/manualPorts/shntool/Pkgfile
@@ -0,0 +1,22 @@
+# Description: A multi-purpose WAVE data processing and reporting utility
+# URL: http://shnutils.freeshell.org/shntool/
+# Maintainer: Erich Eckner, crux at eckner dot net
+
+name=shntool
+version=3.0.10
+release=1
+source=("http://shnutils.freeshell.org/shntool/dist/src/${name}-${version}.tar.gz"
+'shntool-3.0.10-large-size.diff' 'shntool-3.0.10-large-times.diff')
+
+build() {
+
+ cd ${name}-${version}
+
+ patch -Np1 < "../shntool-3.0.10-large-size.diff"
+ patch -Np1 < "../shntool-3.0.10-large-times.diff"
+
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG install
+
+}
diff --git a/manualPorts/shntool/shntool-3.0.10-large-size.diff b/manualPorts/shntool/shntool-3.0.10-large-size.diff
new file mode 100644
index 0000000..539c7fb
--- /dev/null
+++ b/manualPorts/shntool/shntool-3.0.10-large-size.diff
@@ -0,0 +1,22 @@
+diff -aur shntool-3.0.10-clean/src/core_fileio.c shntool-3.0.10-size/src/core_fileio.c
+--- shntool-3.0.10-clean/src/core_fileio.c 2009-03-11 17:18:01.000000000 +0000
++++ shntool-3.0.10-size/src/core_fileio.c 2012-08-11 17:20:14.000000000 +0100
+@@ -110,10 +110,16 @@
+ buf[4] = 0;
+
+ if (be_val)
+- *be_val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
++ *be_val = (((unsigned long)buf[0]) << 24)
++ | (((unsigned long)buf[1]) << 16)
++ | (((unsigned long)buf[2]) << 8)
++ | ((unsigned long)buf[3]);
+
+ if (le_val)
+- *le_val = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0];
++ *le_val = (((unsigned long)buf[3]) << 24)
++ | (((unsigned long)buf[2]) << 16)
++ | (((unsigned long)buf[1]) << 8)
++ | ((unsigned long)buf[0]);
+
+ if (tag_val)
+ tagcpy(tag_val,buf);
diff --git a/manualPorts/shntool/shntool-3.0.10-large-times.diff b/manualPorts/shntool/shntool-3.0.10-large-times.diff
new file mode 100644
index 0000000..be4716e
--- /dev/null
+++ b/manualPorts/shntool/shntool-3.0.10-large-times.diff
@@ -0,0 +1,39 @@
+diff -aur shntool-3.0.10-clean/src/core_mode.c shntool-3.0.10/src/core_mode.c
+--- shntool-3.0.10-clean/src/core_mode.c 2009-03-30 06:55:33.000000000 +0100
++++ shntool-3.0.10/src/core_mode.c 2012-08-11 16:37:58.000000000 +0100
+@@ -310,8 +310,8 @@
+ if (sec >= 60)
+ st_error("invalid value for seconds: [%d]",sec);
+
+- bytes = (wlong)(min * info->rate * 60) +
+- (wlong)(sec * info->rate);
++ bytes = (((wlong)min) * info->rate * 60) +
++ (((wlong)sec) * info->rate);
+
+ return bytes;
+ }
+@@ -358,9 +358,9 @@
+ if (frames >= 75)
+ st_error("invalid value for frames: [%d]",frames);
+
+- bytes = (wlong)(min * CD_RATE * 60) +
+- (wlong)(sec * CD_RATE) +
+- (wlong)(frames * CD_BLOCK_SIZE);
++ bytes = (((wlong)min) * CD_RATE * 60) +
++ (((wlong)sec) * CD_RATE) +
++ (((wlong)frames) * CD_BLOCK_SIZE);
+
+ return bytes;
+ }
+@@ -403,8 +403,8 @@
+
+ nearest_byte = (int)((((double)ms * (double)info->rate) / 1000.0) + 0.5);
+
+- bytes = (wlong)(min * info->rate * 60) +
+- (wlong)(sec * info->rate);
++ bytes = (((wlong)min) * info->rate * 60) +
++ (((wlong)sec) * info->rate);
+
+ if (PROB_NOT_CD(info)) {
+ bytes += nearest_byte;
+