Package Details: ruffle-git 1:r10589.673aa78f9-2

Git Clone URL: https://aur.archlinux.org/ruffle-git.git (read-only, click to copy)
Package Base: ruffle-git
Description: A Flash Player emulator written in Rust
Upstream URL: https://ruffle.rs/
Licenses: MIT, Apache
Conflicts: ruffle
Provides: ruffle
Submitter: quininer
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 12
Popularity: 0.77
First Submitted: 2020-04-16 14:37 (UTC)
Last Updated: 2023-10-01 21:26 (UTC)

Latest Comments

« First ‹ Previous 1 2

Ranguvar commented on 2021-09-11 01:41 (UTC)

Agreed with colbatspace, options=(!lto) would be nice.

lmartinez-mirror commented on 2021-06-29 02:35 (UTC)

Got a patch here with a few suggestions for the PKGBUILD. You will probably need to do a clean build for this. The main highlight is a saner pkgver() that doesn't need any sort of piping.

diff --git a/PKGBUILD b/PKGBUILD
index 11a226b..9958525 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
-pkgname='ruffle-git'
-_pkgname="ruffle"
-pkgver=0.1.0.3210.g7ac53be2
+# Contributor: Luis Martinez <luis dot martinez at tuta dot io>
+
+pkgname=ruffle-git
+pkgver=0.1.0.r4885.2d26e7ca
 pkgrel=1
 arch=('x86_64' 'i686')
 url="https://github.com/ruffle-rs/ruffle"
@@ -10,21 +11,21 @@ depends=('openssl' 'libxcb' 'zlib' 'alsa-lib' 'xz')
 makedepends=('rust' 'cargo' 'git' 'libx11' 'python')
 provides=('ruffle')
 conflicts=('ruffle')
-source=("$_pkgname::git+https://github.com/ruffle-rs/ruffle.git")
+source=("$pkgname::git+$url")
 sha256sums=('SKIP')

 pkgver() {
-   cd $_pkgname/desktop
-   echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+   cd "$pkgname/desktop"
+   printf "%s.r%s.%s" $(awk '/^version/ {gsub(/"/, ""); print $3}' Cargo.toml) "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

 build(){
-  cd "$_pkgname/desktop"
-  env CARGO_INCREMENTAL=0 cargo build --features="lzma" --release --locked
+   cd "$pkgname/desktop"
+   env CARGO_INCREMENTAL=0 cargo build --features="lzma" --release --locked
 }

 package() {
-   cd $_pkgname
-
-   install -D -m755 "target/release/ruffle_desktop" "$pkgdir/usr/bin/ruffle"
+   cd $pkgname
+   install -Dm 755 "target/release/ruffle_desktop" "$pkgdir/usr/bin/ruffle"
+   install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
 }

ddeberhar commented on 2021-06-26 08:16 (UTC)

Building ruffle-git 0.1.0.3210.g7ac53be2-1 fails on my system - unfortunately I'm just a user who'd appreciate the package to build for use - please, fix:

   Compiling ruffle_core v0.1.0 (~/ruffle-git/src/ruffle/core)
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm1/globals/selection.rs:124:14
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm1/value.rs:314:32
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm1/value.rs:317:14
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm2/value.rs:594:17
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm2/value.rs:595:17
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm2/value.rs:619:14
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm2/value.rs:624:32
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm2/value.rs:640:17
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/avm2/value.rs:650:17
...
error[E0658]: or-patterns syntax is experimental
   --> core/src/html/layout.rs:687:30
    |
687 |                         Some('\n' | '\r') => layout_context.explicit_newline(context),
    |                              ^^^^^^^^^^^
    |
    = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information

error[E0277]: `[_; 1]` is not an iterator
  --> core/src/avm1/globals/movie_clip_loader.rs:29:9
   |
29 |         [this.into()],
   |         ^^^^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
   | 
  ::: core/src/avm1/object/array_object.rs:34:12
   |
34 |     pub fn new(
   |            --- required by a bound in this
...
37 |         elements: impl IntoIterator<Item = Value<'gc>>,
   |                        ------------------------------- required by this bound in `avm1::object::array_object::ArrayObject::<'gc>::new`
   |
   = help: the trait `Iterator` is not implemented for `[_; 1]`
   = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
   = note: required because of the requirements on the impl of `IntoIterator` for `[_; 1]`

error[E0277]: `[_; 0]` is not an iterator
  --> core/src/avm1/object/array_object.rs:23:13
   |
23 |             [],
   |             ^^ borrow the array with `&` or call `.iter()` on it to iterate over it
...
34 |     pub fn new(
   |            --- required by a bound in this
...
37 |         elements: impl IntoIterator<Item = Value<'gc>>,
   |                        ------------------------------- required by this bound in `avm1::object::array_object::ArrayObject::<'gc>::new`
   |
   = help: the trait `Iterator` is not implemented for `[_; 0]`
   = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
   = note: required because of the requirements on the impl of `IntoIterator` for `[_; 0]`

error[E0277]: `[_; 0]` is not an iterator
  --> core/src/avm1/object/array_object.rs:31:47
   |
31 |         Self::new_internal(gc_context, proto, [])
   |                                               ^^ borrow the array with `&` or call `.iter()` on it to iterate over it
...
42 |     fn new_internal(
   |        ------------ required by a bound in this
...
45 |         elements: impl IntoIterator<Item = Value<'gc>>,
   |                        ------------------------------- required by this bound in `avm1::object::array_object::ArrayObject::<'gc>::new_internal`
   |
   = help: the trait `Iterator` is not implemented for `[_; 0]`
   = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
   = note: required because of the requirements on the impl of `IntoIterator` for `[_; 0]`

error: aborting due to 13 previous errors

Some errors have detailed explanations: E0277, E0658.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `ruffle_core`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

cobaltspace commented on 2021-06-12 03:59 (UTC)

lto causes this package to fail to compile. options=(!lto) should be set.

abouvier commented on 2020-11-21 18:06 (UTC) (edited on 2020-11-21 18:06 (UTC) by abouvier)

libx11 and python are needed in makedepends=().

openssl, libxcb, zlib, alsa-lib and xz are needed in depends=().