summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-24 23:22:57 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-24 23:22:57 -0500
commit8dbe01c2f26ed9fc09a3e1d156a0f208029e9558 (patch)
treea4d1b8932eb7956779743ab70f54677ac1a6a789 /user
parent8f9deeac4d6a73e689e09c9c761757eabaa277c0 (diff)
downloadpackages-8dbe01c2f26ed9fc09a3e1d156a0f208029e9558.tar.gz
packages-8dbe01c2f26ed9fc09a3e1d156a0f208029e9558.tar.bz2
packages-8dbe01c2f26ed9fc09a3e1d156a0f208029e9558.tar.xz
packages-8dbe01c2f26ed9fc09a3e1d156a0f208029e9558.zip
user/audiofile: new package
Diffstat (limited to 'user')
-rw-r--r--user/audiofile/APKBUILD47
-rw-r--r--user/audiofile/tests-unsigned-gcc6.patch29
2 files changed, 76 insertions, 0 deletions
diff --git a/user/audiofile/APKBUILD b/user/audiofile/APKBUILD
new file mode 100644
index 000000000..6fd6242f4
--- /dev/null
+++ b/user/audiofile/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=audiofile
+pkgver=0.3.6
+pkgrel=0
+pkgdesc="Library for reading and writing audio files in many formats"
+url="https://audiofile.68k.org"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+depends_dev="flac-dev"
+makedepends="$depends_dev alsa-lib-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://audiofile.68k.org/audiofile-$pkgver.tar.gz
+ tests-unsigned-gcc6.patch"
+
+prepare() {
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ cd "$builddir"
+ export CXXFLAGS="$CXXFLAGS -fpermissive"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="f9a1182d93e405c21eba79c5cc40962347bff13f1b3b732d9a396e3d1675297515188bd6eb43033aaa00e9bde74ff4628c1614462456529cabba464f03c1d5fa audiofile-0.3.6.tar.gz
+b85546eaccf0911fb2f5ba26c323ea2c0b18cae7d7476d5ac9e821c90097f331e3391b787f390d130382fffb6b777887344f914489ca1bc0a3974f1ebe16e328 tests-unsigned-gcc6.patch"
diff --git a/user/audiofile/tests-unsigned-gcc6.patch b/user/audiofile/tests-unsigned-gcc6.patch
new file mode 100644
index 000000000..34e179a92
--- /dev/null
+++ b/user/audiofile/tests-unsigned-gcc6.patch
@@ -0,0 +1,29 @@
+--- audiofile-0.3.6/test/NeXT.cpp.old 2013-02-11 17:23:26.000000000 +0000
++++ audiofile-0.3.6/test/NeXT.cpp 2018-03-25 04:19:46.050797108 +0000
+@@ -37,7 +37,7 @@
+
+ #include "TestUtilities.h"
+
+-const char kDataUnspecifiedLength[] =
++const unsigned char kDataUnspecifiedLength[] =
+ {
+ '.', 's', 'n', 'd',
+ 0, 0, 0, 24, // offset of 24 bytes
+@@ -57,7 +57,7 @@
+ 0, 55
+ };
+
+-const char kDataTruncated[] =
++const unsigned char kDataTruncated[] =
+ {
+ '.', 's', 'n', 'd',
+ 0, 0, 0, 24, // offset of 24 bytes
+@@ -152,7 +152,7 @@
+ ASSERT_EQ(::unlink(testFileName.c_str()), 0);
+ }
+
+-const char kDataZeroChannels[] =
++const unsigned char kDataZeroChannels[] =
+ {
+ '.', 's', 'n', 'd',
+ 0, 0, 0, 24, // offset of 24 bytes