atomicparsley: Add package
This commit is contained in:
parent
831515fc06
commit
5012871dac
21
packages/atomicparsley/build.sh
Normal file
21
packages/atomicparsley/build.sh
Normal file
@ -0,0 +1,21 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://bitbucket.org/wez/atomicparsley
|
||||
TERMUX_PKG_DESCRIPTION="read, parse and set metadata of MPEG-4 and 3gp files"
|
||||
TERMUX_PKG_VERSION=0.9.6
|
||||
TERMUX_PKG_SRCURL=https://bitbucket.org/wez/atomicparsley/get/9183fff907bf.zip
|
||||
TERMUX_PKG_SHA256=2c8c2ad9c400637396c43d0212a2a26d3866b15004a46525d15265d3a1543672
|
||||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
TERMUX_PKG_CLANG=no
|
||||
termux_step_extract_package() {
|
||||
echo $PWD
|
||||
cd $TERMUX_PKG_CACHEDIR
|
||||
termux_download \
|
||||
$TERMUX_PKG_SRCURL \
|
||||
$TERMUX_PKG_CACHEDIR/9183fff907bf.zip \
|
||||
$TERMUX_PKG_SHA256
|
||||
|
||||
unzip 9183fff907bf.zip
|
||||
mv wez-atomicparsley-9183fff907bf ../src
|
||||
}
|
||||
termux_step_pre_configure() {
|
||||
./autogen.sh
|
||||
}
|
11
packages/atomicparsley/util.cpp.patch
Normal file
11
packages/atomicparsley/util.cpp.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- ../cache/wez-atomicparsley-da2f6e4fc120/src/util.cpp 2014-03-03 19:18:56.000000000 +0000
|
||||
+++ ./src/util.cpp 2017-11-21 21:26:48.562088998 +0000
|
||||
@@ -339,7 +339,7 @@
|
||||
// platform specifics //
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
-#if !defined(HAVE_LROUNDF)
|
||||
+#if !defined(HAVE_LROUNDF) && !defined (__BIONIC__)
|
||||
int lroundf(float a) {
|
||||
return (int)(a/1);
|
||||
}
|
12
packages/atomicparsley/util.h.patch
Normal file
12
packages/atomicparsley/util.h.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- ../cache/wez-atomicparsley-da2f6e4fc120/src/util.h 2014-03-03 19:18:56.000000000 +0000
|
||||
+++ ./src/util.h 2017-11-21 21:22:42.188746458 +0000
|
||||
@@ -66,7 +66,8 @@
|
||||
void APar_UnpackLanguage(unsigned char lang_code[], uint16_t packed_language);
|
||||
uint16_t PackLanguage(const char* language_code, uint8_t lang_offset);
|
||||
|
||||
-#if !defined(HAVE_LROUNDF)
|
||||
+
|
||||
+#if !defined(HAVE_LROUNDF) && !defined(__BIONIC__)
|
||||
int lroundf(float a);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user