aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Demelier <markand@malikania.fr>2020-04-06 19:33:27 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-04-09 16:31:51 +0000
commit95442fa07a3eb86447eccd642d317fdebcf80390 (patch)
treed221c93a768a51de011274bfa600cbfce576053f
parent0e47247b6141c5a52549828dbbbfd03a2f03686b (diff)
downloadaports-95442fa07a3eb86447eccd642d317fdebcf80390.tar.gz
aports-95442fa07a3eb86447eccd642d317fdebcf80390.tar.bz2
aports-95442fa07a3eb86447eccd642d317fdebcf80390.tar.xz
testing/tagutil: new aport
https://github.com/kAworu/tagutil scriptable music files tags tool and editor
-rw-r--r--testing/tagutil/APKBUILD33
-rw-r--r--testing/tagutil/patch-musl.patch32
2 files changed, 65 insertions, 0 deletions
diff --git a/testing/tagutil/APKBUILD b/testing/tagutil/APKBUILD
new file mode 100644
index 0000000000..b55990bb4f
--- /dev/null
+++ b/testing/tagutil/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: David Demelier <markand@malikania.fr>
+# Maintainer: David Demelier <markand@malikania.fr>
+pkgname=tagutil
+pkgver=3.1
+pkgrel=0
+pkgdesc="scriptable music files tags tool and editor"
+url="https://github.com/kAworu/tagutil"
+arch="all"
+license="BSD-2-Clause"
+makedepends="cmake flac-dev jansson-dev libvorbis-dev taglib-dev yaml-dev"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/kAworu/tagutil/archive/v3.1.tar.gz
+ patch-musl.patch"
+options="!check" # No tests
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ $CMAKE_CROSSOPTS src
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="a5b2140250f21eddd0154231608546b78c5646bb4bcb6ed7b11a3cbade2435c322d83c19a2a2e6852cdacca19a2b1cd6e33c0b71147d6873679d2b41db5a06d9 tagutil-3.1.tar.gz
+2915411e1dc38126879c19d69caf8923fbcb95c72b3371661f50078b2722369ebb88f6dd3de9ba78f974a1eb07b743b1d69e40ee678f2a6f1634d8c972a18ef9 patch-musl.patch"
diff --git a/testing/tagutil/patch-musl.patch b/testing/tagutil/patch-musl.patch
new file mode 100644
index 0000000000..7be2491908
--- /dev/null
+++ b/testing/tagutil/patch-musl.patch
@@ -0,0 +1,32 @@
+--- tagutil-3.1/src/compat/include/sys/queue.h.orig 2020-04-06 19:26:17.876055943 +0200
++++ tagutil-3.1/src/compat/include/sys/queue.h 2020-04-06 19:26:24.292746650 +0200
+@@ -33,8 +33,6 @@
+ #ifndef _SYS_QUEUE_H_
+ #define _SYS_QUEUE_H_
+
+-#include <sys/cdefs.h>
+-
+ /*
+ * This file defines four types of data structures: singly-linked lists,
+ * singly-linked tail queues, lists and tail queues.
+--- tagutil-3.1/src/compat/subr_sbuf.c.orig 2020-04-06 19:26:54.572881419 +0200
++++ tagutil-3.1/src/compat/subr_sbuf.c 2020-04-06 19:27:01.302916526 +0200
+@@ -26,7 +26,6 @@
+ * SUCH DAMAGE.
+ */
+
+-#include <sys/cdefs.h>
+ /*
+ __FBSDID("$FreeBSD: release/10.0.0/sys/kern/subr_sbuf.c 255805 2013-09-22 23:47:56Z des $");
+ */
+--- tagutil-3.1/src/CMakeLists.txt.orig 2020-04-06 19:30:20.403844481 +0200
++++ tagutil-3.1/src/CMakeLists.txt 2020-04-06 19:30:55.434019063 +0200
+@@ -34,7 +34,7 @@
+ add_compile_options(-fstack-protector-strong -o aslr -fpie)
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
+ # Per build type flags.
+-set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -O0 -g -fsanitize=undefined")
++set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -O0 -g")
+ # CMAKE_BUILD_TYPE=GRIM: *very* strict compiler options
+ set(CMAKE_C_FLAGS_GRIM "${CMAKE_C_FLAGS_DEBUG} -Wextra -pedantic -Wconversion -Wstrict-prototypes -Wcast-qual -Wcast-align -Wshadow -Wredundant-decls -Wundef -Wfloat-equal -Wmissing-include-dirs -Wswitch-default -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wold-style-definition -Wformat=2 -Winit-self -Wwrite-strings -Wmissing-prototypes")
+ include(CheckCCompilerFlag)