summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFabioLolix2022-10-30 17:56:35 +0100
committerFabioLolix2022-10-30 17:56:35 +0100
commitfe6c3697ebcb2e85ee86c1f8b002e79a5881224d (patch)
tree40192cc54f35b91424148a7b7bf6521483c864ca /PKGBUILD
parent9262f26101748e2e658c1d68613ee14dd25c3bf2 (diff)
downloadaur-fe6c3697ebcb2e85ee86c1f8b002e79a5881224d.tar.gz
update
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 21 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 88d2f72e0f13..202be2664059 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: quininer
pkgname=ruffle-git
-pkgver=0.1.0.r7525.g84533e278
+pkgver=0.1.0.7599.gee52ce329
pkgrel=1
pkgdesc="A Flash Player emulator written in Rust"
arch=(x86_64)
@@ -18,7 +18,7 @@ options=(!lto)
pkgver() {
cd "ruffle/desktop"
- printf "%s.r%s.g%s" $(awk '/^version/ {gsub(/"/, ""); print $3}' Cargo.toml) "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ printf "%s.%s.g%s" $(awk '/^version/ {gsub(/"/, ""); print $3}' Cargo.toml) "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
@@ -35,4 +35,23 @@ package() {
cd ruffle
install -D -m755 "target/release/ruffle_desktop" "$pkgdir/usr/bin/ruffle"
install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
+
+ for s in 16x16 32x32 128x128 256x256 512x512; do
+ install -Dm0644 "desktop/assets/Assets.xcassets/RuffleMacIcon.iconset/icon_$s.png" "${pkgdir}/usr/share/icons/hicolor/$s/apps/ruffle.png"
+ done
+
+ install -d "${pkgdir}/usr/share/applications/"
+ cat > "${pkgdir}/usr/share/applications/ruffle.desktop" << _EOD
+[Desktop Entry]
+Type=Application
+Name=Ruffle
+GenericName=Ruffle
+Comment=Player for using content created on the Adobe Flash platform
+Exec=ruffle
+Icon=ruffle
+Terminal=false
+StartupNotify=false
+Categories=Audio;AudioVideo;Graphics;GTK;Player;Video;Viewer;
+MimeType=application/x-shockwave-flash;
+_EOD
}