Add PKGBUILD
This commit is contained in:
1 parent
463a9069b7
commit
3df9458b5e
1 file changed
+30
@@ -0,0 +1,30 @@
|
|||||||
|
pkgname=aiostreams-desktop-bin
|
||||||
|
pkgver=0.0.0
|
||||||
|
pkgrel=1
|
||||||
|
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/"
|
||||||
|
}
|
||||||
Reference in new issue
Block a user