summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7329c7a0eb5f1c1d91316ea7f155baf4b85eb341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Jonian Guveli <https://github.com/jonian/>
pkgname=acestream-launcher
pkgver=0.3.1
pkgrel=1
pkgdesc="Acestream Launcher allows you to open Acestream links with a Media Player of your choice"
arch=('any')
url="https://github.com/jonian/acestream-launcher"
license=('GPL')
groups=()
depends=('python2-psutil' 'python2-pexpect' 'python2-ptyprocess' 'python2-notify' 'acestream-engine')
makedepends=()
optdepends=('vlc')
provides=('acestream-launcher')
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(https://github.com/jonian/acestream-launcher/archive/v$pkgver.tar.gz)
noextract=()
md5sums=('SKIP')

package() {
  mkdir -p "$pkgdir/opt"
  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/usr/share/applications"

  cp -a "$srcdir/$pkgname-$pkgver" "$pkgdir/opt/acestream-launcher"

  sudo update-desktop-database "$pkgdir/opt/acestream-launcher"

  ln -s "/opt/acestream-launcher/acestream-launcher.py" "$pkgdir/usr/bin/acestream-launcher"
  mv "$pkgdir/opt/acestream-launcher/acestream-launcher.desktop" "$pkgdir/usr/share/applications/acestream-launcher.desktop"
}