Update package version to 3.3.1
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="google/double-conversion"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
name: double-conversion
|
name: double-conversion
|
||||||
description: Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles
|
description: Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles
|
||||||
version: 3.3.0
|
version: 3.3.1
|
||||||
revision: 2
|
|
||||||
url: https://github.com/google/double-conversion
|
url: https://github.com/google/double-conversion
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -21,23 +21,26 @@ build() {
|
|||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DBUILD_TESTING=ON \
|
-DBUILD_TESTING=ON \
|
||||||
..
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..
|
||||||
make
|
cmake --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
|
cd build
|
||||||
make test
|
|
||||||
|
ctest
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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
|
cd build
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
|
||||||
|
|
||||||
|
DESTDIR="$BPM_OUTPUT" cmake --install .
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/double-conversion/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/double-conversion/LICENSE
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/double-conversion/COPYING
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/double-conversion/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user