librsvg update
This commit is contained in:
1 parent
c80a5c2022
commit
eab4138773
2 files changed
+39
-2
No files matched your search
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='cargo-c'
|
||||||
|
release='1'
|
||||||
|
version='0.10.7'
|
||||||
|
url='https://github.com/lu-zero/cargo-c'
|
||||||
|
description='cargo applet to build and install C-compatible libraries'
|
||||||
|
email='parduscix@yandex.ru'
|
||||||
|
maintainer='sulincix'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/lu-zero/cargo-c/archive/refs/tags/v$version.tar.gz")
|
||||||
|
depends=()
|
||||||
|
makedepends=()
|
||||||
|
sha256sums=('c4532dd2bf23769df5f64649d5b0c037fb2a29467c74d16a54bad3054d9f3f3a')
|
||||||
|
group=(dev.util)
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
cargo fetch
|
||||||
|
}
|
||||||
|
|
||||||
|
build () {
|
||||||
|
cargo build --release --frozen
|
||||||
|
}
|
||||||
|
|
||||||
|
package () {
|
||||||
|
install -Dm755 target/release/cargo-* -t "$DESTDIR"/usr/bin/
|
||||||
|
}
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ license=('GPLv3')
|
|||||||
#source=("https://github.com/oaken-source/librsvg-og/archive/refs/tags/$version.tar.gz")
|
#source=("https://github.com/oaken-source/librsvg-og/archive/refs/tags/$version.tar.gz")
|
||||||
source=("https://download.gnome.org/sources/librsvg/${version%.*}/librsvg-${version}.tar.xz")
|
source=("https://download.gnome.org/sources/librsvg/${version%.*}/librsvg-${version}.tar.xz")
|
||||||
depends=(libcroco gobject-introspection pango cairo fontconfig libX11 libXext libXrender libxcb gdk-pixbuf)
|
depends=(libcroco gobject-introspection pango cairo fontconfig libX11 libXext libXrender libxcb gdk-pixbuf)
|
||||||
makedepends=(rust)
|
makedepends=(rust cargo-c vala)
|
||||||
sha256sums=('ecd293fb0cc338c170171bbc7bcfbea6725d041c95f31385dc935409933e4597')
|
sha256sums=('ecd293fb0cc338c170171bbc7bcfbea6725d041c95f31385dc935409933e4597')
|
||||||
group=(gnome.base)
|
group=(gnome.base)
|
||||||
uses=()
|
uses=()
|
||||||
@@ -18,9 +18,15 @@ arch=('x86_64')
|
|||||||
|
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
|
||||||
|
prepare(){
|
||||||
|
# convert CRFL files to normal files
|
||||||
|
find -type f -exec sed -i "s/\r$//g" {} \;
|
||||||
|
}
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
meson setup build \
|
meson setup build \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
-Ddocs=disabled \
|
||||||
-Dintrospection=enabled \
|
-Dintrospection=enabled \
|
||||||
-Dpixbuf=enabled\
|
-Dpixbuf=enabled\
|
||||||
-Dpixbuf-loader=enabled \
|
-Dpixbuf-loader=enabled \
|
||||||
@@ -31,6 +37,6 @@ build(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
package(){
|
package(){
|
||||||
ninja -C build install DESTDIR="$DESTDIR" $jobs
|
ninja -C build install $jobs
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user