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
|
name: librsvg
|
||||||
description: SVG rendering library
|
description: SVG rendering library
|
||||||
version: 2.57.1
|
version: 2.61.1
|
||||||
revision: 2
|
|
||||||
url: https://wiki.gnome.org/Projects/LibRsvg
|
url: https://wiki.gnome.org/Projects/LibRsvg
|
||||||
license: LGPL2.1-or-later
|
license: LGPL2.1-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["cairo", "freetype2", "gcc-libs", "gdk-pixbuf", "glib", "glibc", "harfbuzz", "libxml2", "pango"]
|
depends: ["cairo", "dav1d", "freetype2", "gcc-libs", "gdk-pixbuf", "glib", "glibc", "harfbuzz", "libxml2", "pango"]
|
||||||
make_depends: ["gobject-introspection", "llvm", "rustc", "vala"]
|
make_depends: ["cargo-c","gobject-introspection", "llvm", "meson", "rustc", "vala"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -10,25 +10,29 @@ FILENAME="${DOWNLOAD##*/}"
|
|||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
wget "$DOWNLOAD"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
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
|
# 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() {
|
||||||
./configure --prefix=/usr --enable-vala --disable-static
|
meson setup --prefix=/usr --buildtype=release build
|
||||||
make
|
meson compile -C 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() {
|
||||||
RUSTC_BOOTSTRAP=1 make -C librsvg check || :
|
meson test -C build
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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() {
|
||||||
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
|
install -Dm644 "$BPM_SOURCE"/COPYING.LIB "$BPM_OUTPUT"/usr/share/licenses/librsvg/COPYING.LIB
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user