Update package version to 0.28.8
This commit is contained in:
@@ -1,9 +1,28 @@
|
|||||||
name: exiv2
|
name: exiv2
|
||||||
description: Cross-platform C++ library and a command line utility to manage image metadata
|
description: Cross-platform C++ library and a command line utility to manage image metadata
|
||||||
version: 0.28.7
|
version: 0.28.8
|
||||||
|
revision: 1
|
||||||
url: https://exiv2.org/
|
url: https://exiv2.org/
|
||||||
license: GPL2-or-later
|
license: GPL2-or-later
|
||||||
|
maintainers:
|
||||||
|
- [email protected]
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["brotli", "curl", "expat", "gcc-libs", "gettext", "glibc", "inih", "zlib"]
|
|
||||||
make_depends: ["cmake", "googletest", "python3"]
|
|
||||||
type: source
|
type: source
|
||||||
|
depends:
|
||||||
|
- brotli
|
||||||
|
- curl
|
||||||
|
- expat
|
||||||
|
- gcc-libs
|
||||||
|
- gettext
|
||||||
|
- glibc
|
||||||
|
- inih
|
||||||
|
- zlib
|
||||||
|
make_depends:
|
||||||
|
- cmake
|
||||||
|
- googletest
|
||||||
|
- python3
|
||||||
|
downloads:
|
||||||
|
- url: https://github.com/Exiv2/exiv2/archive/v${BPM_PKG_VERSION}/exiv2-${BPM_PKG_VERSION}.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: ea51b0609f58a9afa063b60daa1539948b62247721e154f4fff0ad3aec9f9756
|
||||||
|
|||||||
@@ -15,33 +15,28 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
cmake -B build \
|
||||||
cd build
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
|
||||||
cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-D CMAKE_BUILD_TYPE=Release \
|
-D CMAKE_BUILD_TYPE=Release \
|
||||||
-D EXIV2_ENABLE_VIDEO=yes \
|
-D EXIV2_ENABLE_VIDEO=yes \
|
||||||
-D EXIV2_ENABLE_WEBREADY=yes \
|
-D EXIV2_ENABLE_WEBREADY=yes \
|
||||||
-D EXIV2_ENABLE_CURL=yes \
|
-D EXIV2_ENABLE_CURL=yes \
|
||||||
-D EXIV2_BUILD_SAMPLES=no \
|
-D EXIV2_BUILD_SAMPLES=no \
|
||||||
-D CMAKE_SKIP_INSTALL_RPATH=ON ..
|
-D CMAKE_SKIP_INSTALL_RPATH=ON
|
||||||
make
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cd build
|
ctest --test-dir build
|
||||||
|
|
||||||
make test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||||
|
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/exiv2/COPYING
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/exiv2/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user