Package Details: resvg-git 0.40.0.r3.g25fd2503-1

Git Clone URL: https://aur.archlinux.org/resvg-git.git (read-only, click to copy)
Package Base: resvg-git
Description: SVG rendering library and CLI
Upstream URL: https://github.com/RazrFalcon/resvg
Licenses: MPL2
Conflicts: resvg
Provides: resvg
Submitter: actionless
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 7
Popularity: 0.000000
First Submitted: 2018-12-15 21:06 (UTC)
Last Updated: 2024-03-09 22:12 (UTC)

Dependencies (13)

Required by (8)

Sources (1)

Latest Comments

actionless commented on 2020-09-22 11:08 (UTC) (edited on 2020-09-22 11:08 (UTC) by actionless)

@minidude22 because using bugtracker is a better strategy than randomly updating the software to git revisions :) https://github.com/nana-4/materia-theme/issues/523

minidude22 commented on 2020-09-22 03:48 (UTC)

I was installing this as a dependency for https://aur.archlinux.org/packages/oomox/ and after my changes and getting it to install, I still had issues when it came time to export my theme. So I ended up installing inkscape instead. I'm not exactly sure what I was missing so I don't feel confidant updating the script with my changes. It'd need to be more thought out.

actionless commented on 2020-09-20 20:24 (UTC)

also please test if this gonna work fine:

pkgver() {
        cd "${srcdir}/${_pkgname}"
        git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
        cd "${srcdir}/${_pkgname}"
                        cargo build --release

}
package() {
        cd "${srcdir}/${_pkgname}"
        for tool in usvg resvg; do
                install -Dm755 target/release/$tool "$pkgdir/usr/bin/$tool"
        done
        install -Dm755 tools/viewsvg/viewsvg "$pkgdir/usr/bin/viewsvg"
        (
                cd tools/kde-dolphin-thumbnailer/build
                make install
        )
        install -Dm755 target/release/libresvg.so "$pkgdir/usr/lib/libresvg.so"
        install -Dm644 c-api/resvg.h       "$pkgdir/usr/include/resvg.h"
        install -d "$pkgdir/usr/share/doc/resvg"
        cp -r target/doc/* "$pkgdir/usr/share/doc/resvg"
}

actionless commented on 2020-09-20 20:22 (UTC)

@minidude22, right now i'm a bit busy with other stuff, i've added you to co-maintainers so you could apply your patch

minidude22 commented on 2020-09-18 05:38 (UTC)

In case anyone is having issues building this. I had to modify the PKGBUILD to be like this as their git repository seems to have changed capi to c-api and moved a few things around. I'm sure this isn't perfect. I'm new to Arch and the AUR, but this is closer to what's needed.

build() {
  cd "${srcdir}/${_pkgname}"
  (
    msg2 "Building c-api"
    cd "c-api"
    if grep -q cairo-backend Cargo.toml; then
      cargo build --release --features='qt-backend cairo-backend'
    else
      cargo build --release
    fi
  )
  (
    msg2 "Building tools/viewsvg"
    cd tools/viewsvg
    qmake PREFIX="$pkgdir/usr"
    make
  )
  (
    msg2 "Building tools/kde-dolphin-thumbnailer"
    cd tools/kde-dolphin-thumbnailer
    mkdir -p build
    cd build
    cmake .. \
      -DCMAKE_CXX_FLAGS="-L../../../target/release" \
      -DCMAKE_INSTALL_PREFIX="$pkgdir/$(qtpaths --install-prefix)" \
      -DQT_PLUGIN_INSTALL_DIR="$pkgdir/$(qtpaths --plugin-dir)" \
      -DCMAKE_BUILD_TYPE=Release
    make
  )

  msg2 'Building docs'
  cargo doc --release --no-deps -p resvg-capi
  cargo build --release
}

package() {
  cd "${srcdir}/${_pkgname}"

  install -Dm755 target/release/resvg  "$pkgdir/usr/bin/resvg"
  install -Dm755 tools/viewsvg/viewsvg "$pkgdir/usr/bin/viewsvg"
  (
    cd tools/kde-dolphin-thumbnailer/build                      
    make install                                                
  )                                       
  install -Dm755 target/release/libresvg.so "$pkgdir/usr/lib/libresvg.so"
  install -Dm644 c-api/resvg.h              "$pkgdir/usr/include/resvg.h"
  install -d "$pkgdir/usr/share/doc/resvg"                               
  cp -r target/doc/* "$pkgdir/usr/share/doc/resvg"
}

alfunx commented on 2019-01-11 17:23 (UTC)

Could you please add "git" and "gdk-pixbuf2" as makedepends, they are missing.