Update package version to 2.61.1
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Gitlab repository
|
||||
REPO="GNOME/librsvg"
|
||||
|
||||
# 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.gnome.org/api/v4/projects/"$REPO"/releases | jq -r '.[].tag_name' | sort -V | tail -n1)
|
||||
|
||||
echo "$TAG_NAME"
|
||||
@@ -1,10 +1,9 @@
|
||||
name: librsvg
|
||||
description: SVG rendering library
|
||||
version: 2.57.1
|
||||
revision: 2
|
||||
version: 2.61.1
|
||||
url: https://wiki.gnome.org/Projects/LibRsvg
|
||||
license: LGPL2.1-or-later
|
||||
architecture: any
|
||||
depends: ["cairo", "freetype2", "gcc-libs", "gdk-pixbuf", "glib", "glibc", "harfbuzz", "libxml2", "pango"]
|
||||
make_depends: ["gobject-introspection", "llvm", "rustc", "vala"]
|
||||
depends: ["cairo", "dav1d", "freetype2", "gcc-libs", "gdk-pixbuf", "glib", "glibc", "harfbuzz", "libxml2", "pango"]
|
||||
make_depends: ["cargo-c","gobject-introspection", "llvm", "meson", "rustc", "vala"]
|
||||
type: source
|
||||
|
||||
@@ -10,25 +10,29 @@ FILENAME="${DOWNLOAD##*/}"
|
||||
prepare() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
|
||||
cd "$BPM_SOURCE"
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
}
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
./configure --prefix=/usr --enable-vala --disable-static
|
||||
make
|
||||
meson setup --prefix=/usr --buildtype=release build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
RUSTC_BOOTSTRAP=1 make -C librsvg check || :
|
||||
meson test -C build
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
meson install -C build --destdir="$BPM_OUTPUT"
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING.LIB "$BPM_OUTPUT"/usr/share/licenses/librsvg/COPYING.LIB
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user