-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea1da9c
commit 811da74
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Manteiner: Francesco <[email protected]> | ||
pkgname=snapcast-gui-git | ||
pkgver=r94.0084c57 | ||
pkgrel=1 | ||
pkgdesc="A GUI to control Snapcast" | ||
arch=("x86_64") | ||
url="https://github.com/chicco-carone/Snapcast-Gui" | ||
license=("GPLv3") | ||
depends=("git" "python" "pyside6" "python-setuptools" "python-wheel" "python-platformdirs") | ||
makedepends=("python-notify-py") | ||
source=("$pkgname::git+https://github.com/chicco-carone/Snapcast-Gui.git") | ||
sha256sums=('SKIP') | ||
|
||
pkgver() { | ||
cd "$srcdir/$pkgname" | ||
if git describe --tags --long 2>/dev/null; then | ||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | ||
else | ||
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" | ||
fi | ||
} | ||
|
||
|
||
build() { | ||
cd "$srcdir/$pkgname" | ||
python setup.py build | ||
} | ||
|
||
package() { | ||
cd "$srcdir/$pkgname" | ||
python setup.py install --root="$pkgdir/" --optimize=1 | ||
|
||
# Creazione della directory per i file .desktop | ||
install -Dm644 /dev/null "$pkgdir/usr/share/applications/snapcast-gui.desktop" | ||
|
||
cat <<EOF > "$pkgdir/usr/share/applications/snapcast-gui.desktop" | ||
[Desktop Entry] | ||
Name=Snapcast Gui | ||
Comment=A gui to control and manage snapcast | ||
Exec=snapcast-gui | ||
Icon=snapcast-gui | ||
Terminal=false | ||
Type=Application | ||
Categories=AudioVideo;Player; | ||
EOF | ||
|
||
install -Dm644 "$srcdir/$pkgname/icons/Snapcast.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/snapcast-gui.png" | ||
} | ||
|
||
provides=("snapcast-gui") | ||
conflicts=("snapcast-gui") |