diff options
author | Jacob Mischka | 2018-02-15 21:23:13 -0600 |
---|---|---|
committer | Jacob Mischka | 2018-02-15 21:23:13 -0600 |
commit | 993669e91289c12eff35b80c2610dace37ed1366 (patch) | |
tree | 46a3ef77cfb1c82336987a0332f75973074655ec /PKGBUILD | |
download | aur-993669e91289c12eff35b80c2610dace37ed1366.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20a436046bd3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Jacob Mischka <jacob@mischka.me> + +pkgname=gnomecast-git +pkgver=r16.8c08e60 +pkgrel=1 +pkgdesc='A native Linux GUI for Chromecasting local files.' +arch=('x86_64') +url='https://github.com/keredson/gnomecast' +license=('GPL-3.0') +depends=('gtk3' 'python') +provides=('gnomecast') +source=("$pkgname::git://github.com/keredson/gnomecast.git") +sha512sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 + + install -Dm0644 cast.png "$pkgdir/usr/share/pixmaps/gnomecast.png" + + _launcher="$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm0755 /dev/stdin "$_launcher"<<END +[Desktop Entry] +Version=$pkgver +Name=Gnomecast +Comment=Cast local files to Chromecast +Exec=python -m gnomecast +Icon=gnomecast +Type=Application +END +} + + |