Update package version to 4.7.0
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Gitlab repository
|
||||||
|
REPO="libtiff/libtiff"
|
||||||
|
|
||||||
|
# Replace slash with URL encoded representation
|
||||||
|
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
|
||||||
|
|
||||||
|
# Get tag name using Gitlab Rest API
|
||||||
|
TAG_NAME=$(curl -s -L https://gitlab.com/api/v4/projects/"$REPO"/releases/permalink/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
name: libtiff
|
name: libtiff
|
||||||
description: Library for reading and writing TIFF image files
|
description: Library for reading and writing TIFF image files
|
||||||
version: 4.6.0
|
version: 4.7.0
|
||||||
revision: 2
|
|
||||||
url: http://www.simplesystems.org/libtiff/
|
url: http://www.simplesystems.org/libtiff/
|
||||||
license: custom
|
license: custom
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["gcc-libs", "glibc", "libjpeg-turbo", "xz-utils", "zlib", "zstd"]
|
depends: ["gcc-libs", "glibc", "libjpeg-turbo", "xz-utils", "zlib", "zstd"]
|
||||||
optional_depends: ["freeglut"]
|
optional_depends: ["freeglut"]
|
||||||
make_depends: ["freeglut", "cmake", "mesa", "ninja"]
|
make_depends: ["freeglut", "cmake", "mesa"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://download.osgeo.org/libtiff/tiff-${BPM_PKG_VERSION}.tar.gz"
|
DOWNLOAD="https://gitlab.com/libtiff/libtiff/-/archive/v${BPM_PKG_VERSION}/libtiff-v${BPM_PKG_VERSION}.tar.gz"
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
@@ -15,25 +15,21 @@ 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 libtiff-build
|
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||||
cd libtiff-build
|
cmake --build build
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..
|
|
||||||
ninja
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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 libtiff-build
|
ctest --test-dir build
|
||||||
ninja 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 libtiff-build
|
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE.md "$BPM_OUTPUT"/usr/share/licenses/libtiff/LICENSE.md
|
install -Dm644 "$BPM_SOURCE"/LICENSE.md "$BPM_OUTPUT"/usr/share/licenses/libtiff/LICENSE.md
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user