new package: libcddb

This commit is contained in:
Tee KOBAYASHI 2021-12-23 15:11:07 +09:00 committed by Leonid Pliushch
parent a93ea177dc
commit 66c20864f0
2 changed files with 23 additions and 0 deletions

12
packages/libcddb/build.sh Normal file
View File

@ -0,0 +1,12 @@
TERMUX_PKG_HOMEPAGE=http://libcddb.sourceforge.net/
TERMUX_PKG_DESCRIPTION="A C library to access data on a CDDB server"
TERMUX_PKG_LICENSE="LGPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.3.2
TERMUX_PKG_SRCURL=http://prdownloads.sourceforge.net/libcddb/libcddb-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=35ce0ee1741ea38def304ddfe84a958901413aa829698357f0bee5bb8f0a223b
TERMUX_PKG_DEPENDS="libiconv"
termux_step_pre_configure() {
autoreconf -fi
}

View File

@ -0,0 +1,11 @@
--- a/lib/cddb_net.c
+++ b/lib/cddb_net.c
@@ -305,7 +305,7 @@
int rv;
fd_set wfds;
struct timeval tv;
- size_t l;
+ socklen_t l;
/* set up select time out */
tv.tv_sec = timeout;