43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
# Maintainer: Daniel Head <archlinux at danhead dot me>
|
|
|
|
pkgname=playback-appimage
|
|
pkgver=1.5.1
|
|
pkgrel=1
|
|
pkgdesc="Playback software for Epilogue's GB Operator"
|
|
arch=('x86_64')
|
|
url="https://www.epilogue.co"
|
|
license=()
|
|
options=(!strip)
|
|
|
|
_filename="Playback.AppImage"
|
|
_appimage="Playback-$pkgver.AppImage"
|
|
_squashfs_desktop_file="Playback.desktop"
|
|
_desktop_file="/usr/share/applications/playback.desktop"
|
|
_install_path="/opt/appimages/$_filename"
|
|
|
|
source=(
|
|
"$_appimage::https://epilogue.nyc3.digitaloceanspaces.com/releases/software/Playback/version/$pkgver/release/linux/$_filename"
|
|
)
|
|
sha512sums=(
|
|
204d3859e86593a02bb55340d20aab973a012af6b71cbb917f8d3c76fe94d2a73fa370daa70d32993b82e20879f1b6e761b83038c94693d4198f115c5bd26c61
|
|
)
|
|
|
|
prepare () {
|
|
rm -rf ./squashfs-root
|
|
chmod +x $_appimage
|
|
./$_appimage --appimage-extract "usr/share/icons/hicolor/*/apps/Playback.png" > /dev/null 2>&1
|
|
./$_appimage --appimage-extract "$_squashfs_desktop_file" > /dev/null 2>&1
|
|
}
|
|
|
|
package() {
|
|
install -dm755 "$pkgdir/usr/share/icons"
|
|
cp -dpr --no-preserve=ownership "squashfs-root/usr/share/icons" "$pkgdir/usr/share"
|
|
chmod -R 755 "$pkgdir/usr/share/icons"
|
|
find "$pkgdir/usr/share/icons" -type f -name "Playback.png" -exec chmod 644 {} \;
|
|
|
|
install -Dm644 "squashfs-root/$_squashfs_desktop_file" "$pkgdir/$_desktop_file"
|
|
install -Dm755 "$_appimage" "$pkgdir/$_install_path"
|
|
mkdir "$pkgdir/usr/bin/" && chmod 755 "$pkgdir/usr/bin/"
|
|
ln -s "$_install_path" "$pkgdir/usr/bin/Playback"
|
|
}
|