diff --git a/check-version.sh b/check-version.sh index c2bf3b0..debffc4 100644 --- a/check-version.sh +++ b/check-version.sh @@ -9,4 +9,7 @@ TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: t # Trim 'v' character in TAG_NAME variable VERSION=$(echo "$TAG_NAME" | tr -d 'v') +# Replace '-' with '.' +VERSION=${VERSION//-/.} + echo "$VERSION" diff --git a/info.yml b/info.yml index 46c3c70..4fff3fc 100644 --- a/info.yml +++ b/info.yml @@ -1,7 +1,7 @@ name: noto-fonts-emoji description: Google Noto emoji fonts -version: "2.051" -revision: 2 +version: 2026.09.24.unicode18_0 +revision: 1 url: https://fonts.google.com/noto license: custom maintainers: @@ -11,3 +11,8 @@ output_architecture: any type: source provides: - emoji-font +downloads: + - url: https://github.com/googlefonts/noto-emoji/archive/refs/tags/v${BPM_PKG_VERSION//./-}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: eedc2866ea0e681d0ca9e7694eff6b3298bf685d4f981cca0f195a72d57bcdca diff --git a/recipe.sh b/recipe.sh index c5a24aa..62f7adb 100644 --- a/recipe.sh +++ b/recipe.sh @@ -1,22 +1,11 @@ # This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package # 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 - -DOWNLOAD="https://github.com/googlefonts/noto-emoji/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - install -d "$BPM_OUTPUT"/usr/share/fonts/noto - install -m644 fonts/NotoColorEmoji.ttf "$BPM_OUTPUT"/usr/share/fonts/noto - - install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/noto-fonts/LICENSE + install -Dm644 2D/fonts/NotoColorEmoji.ttf -t "$BPM_OUTPUT"/usr/share/fonts/noto + + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/noto-fonts-emoji/LICENSE }