diff --git a/packages/id3ted/build.sh b/packages/id3ted/build.sh new file mode 100644 index 000000000..6f7d583b0 --- /dev/null +++ b/packages/id3ted/build.sh @@ -0,0 +1,10 @@ +TERMUX_PKG_HOMEPAGE=https://muennich.github.com/id3ted/ +TERMUX_PKG_DESCRIPTION="A comand line id3 tag editor" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=1.0 +TERMUX_PKG_SRCURL=https://github.com/muennich/id3ted/archive/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=b661514637278b00930cc13ef22f46530baadcf9f3f4ee4b7cb210b0d46b18f1 +TERMUX_PKG_DEPENDS="file, libc++, taglib" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX" diff --git a/packages/id3ted/id3ted-1.0-fix-oob.patch b/packages/id3ted/id3ted-1.0-fix-oob.patch new file mode 100644 index 000000000..6ddf3560b --- /dev/null +++ b/packages/id3ted/id3ted-1.0-fix-oob.patch @@ -0,0 +1,15 @@ +https://github.com/muennich/id3ted/commit/a044c5659bf29df8152feabba63a83dc6feb7a99 + +diff --git a/fileio.cpp b/fileio.cpp +index 35d992f..edfe2de 100644 +--- a/fileio.cpp ++++ b/fileio.cpp +@@ -154,7 +154,7 @@ FileIO::Status FileIO::resetTimes(const char *filename, const FileTimes ×) + } + + FileIO::Status FileIO::createDir(const char *path) { +- char *directory = new char[strlen(path + 1)]; ++ char *directory = new char[strlen(path) + 1]; + char *curr = directory; + struct stat stats; + Status ret = Success;