34 lines
997 B
Bash
34 lines
997 B
Bash
# Maintainer: pascalyazid <your-email@example.com>
|
|
pkgname=aiostreams-desktop-bin
|
|
pkgver=0.18.0
|
|
pkgrel=2
|
|
pkgdesc="The AIOStreams app in a native window, playing through mpv"
|
|
arch=('x86_64')
|
|
url="https://github.com/Viren070/AIOStreams"
|
|
license=('AGPL3')
|
|
provides=('aiostreams-desktop')
|
|
conflicts=('aiostreams-desktop')
|
|
source=("aiostreams-desktop-linux-x64.AppImage")
|
|
sha256sums=('SKIP')
|
|
|
|
prepare() {
|
|
chmod +x "$srcdir/${source[0]}"
|
|
"$srcdir/${source[0]}" --appimage-extract >/dev/null
|
|
}
|
|
|
|
package() {
|
|
install -d "$pkgdir/opt/$pkgname"
|
|
cp -r "$srcdir/squashfs-root/." "$pkgdir/opt/$pkgname/"
|
|
|
|
install -d "$pkgdir/usr/bin"
|
|
ln -s "/opt/$pkgname/AppRun" "$pkgdir/usr/bin/aiostreams-desktop"
|
|
|
|
local share="$srcdir/squashfs-root/usr/share"
|
|
install -Dm644 "$share/applications/io.github.viren070.aiostreams.desktop" \
|
|
-t "$pkgdir/usr/share/applications"
|
|
install -d "$pkgdir/usr/share/icons"
|
|
cp -r "$share/icons/hicolor" "$pkgdir/usr/share/icons/"
|
|
|
|
chmod -R a+rX,go-w "$pkgdir"
|
|
}
|