]> git.pld-linux.org Git - packages/kodi-addon-inputstream-adaptive.git/commitdiff
avoid using network for building internal bento4 auto/th/kodi-addon-inputstream-adaptive-20.3.2-1
authorJan Palus <atler@pld-linux.org>
Tue, 17 Jan 2023 00:02:25 +0000 (01:02 +0100)
committerJan Palus <atler@pld-linux.org>
Tue, 17 Jan 2023 00:02:25 +0000 (01:02 +0100)
bento4-hash.patch [new file with mode: 0644]
kodi-addon-inputstream-adaptive.spec

diff --git a/bento4-hash.patch b/bento4-hash.patch
new file mode 100644 (file)
index 0000000..f4d721f
--- /dev/null
@@ -0,0 +1,18 @@
+--- inputstream.adaptive-20.3.2-Nexus/FindBento4.cmake.orig    2023-01-11 22:37:47.000000000 +0100
++++ inputstream.adaptive-20.3.2-Nexus/FindBento4.cmake 2023-01-17 00:58:34.052783728 +0100
+@@ -13,6 +13,7 @@
+   include(ExternalProject)
+   file(STRINGS ${CMAKE_SOURCE_DIR}/depends/common/bento4/bento4.txt bentourl REGEX "^bento4[\t ]*.+$")
+   string(REGEX REPLACE "^bento4[\t ]*(.+)[\t ]*$" "\\1" url "${bentourl}")
++  file(STRINGS ${CMAKE_SOURCE_DIR}/depends/common/bento4/bento4.sha256 BENTO4_HASH)
+   # allow user to override the download URL with a local tarball
+   # needed for offline build envs
+@@ -39,6 +40,7 @@
+   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+   externalproject_add(bento4
+                       URL ${BENTO4_URL}
++                      URL_HASH SHA256=${BENTO4_HASH}
+                       DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/download
+                       PREFIX ${CMAKE_BINARY_DIR}/bento4
+                       PATCH_COMMAND ${PATCH_COMMAND}
index 47cf15a60edcf34b3040dcd2d8ef44c40f4374ae..9436ee49bf2f8be2f3c4469a58c128752c7c3e52 100644 (file)
@@ -6,6 +6,8 @@
 %define                codename        Nexus
 %define                addon           inputstream.adaptive
 
+%define                bento4_ver      1.6.0-639-5-Nexus
+
 Summary:       Kodi InputStream addon for several manifest types
 Name:          kodi-addon-inputstream-adaptive
 Version:       %{kodi_ver}.3.2
@@ -14,6 +16,9 @@ License:      GPL v2+
 Group:         Applications/Multimedia
 Source0:       https://github.com/xbmc/inputstream.adaptive/archive/%{version}-%{codename}/%{version}-%{codename}.tar.gz
 # Source0-md5: aa5a2232ad124d725f66963dbfb0b8cc
+Source1:       https://github.com/xbmc/Bento4/archive/%{bento4_ver}/Bento4-%{bento4_ver}.tar.gz
+# Source1-md5: 4e7e9c3384c5bd1ccadb24dbf2a6e936
+Patch0:                bento4-hash.patch
 URL:           https://github.com/xbmc/inputstream.adaptive
 BuildRequires: cmake >= 3.10
 BuildRequires: expat-devel
@@ -30,6 +35,10 @@ Kodi InputStream addon for several manifest types
 
 %prep
 %setup -q -n %{addon}-%{version}-%{codename}
+%patch0 -p1
+
+install -d build/download
+cp -p %{SOURCE1} build/download/%{bento4_ver}.tar.gz
 
 %build
 %cmake -B build \
This page took 0.6196 seconds and 4 git commands to generate.