summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7ee857fcb779bc43377cd0161cad4145cab1d28 (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
36
37
38
39
40
41
42
43
# maintainer: hzy068808 at gmail.com
# contributer: a304yuanyuan at gmail.com
# contributer: rob.til.freedman@googlemail.com

pkgname=moonplayer
pkgver=2.8
pkgrel=2
pkgdesc="A qt font-end for mplayer with the abilities of watching and downloading videos from chinese network"
arch=('i686' 'x86_64')
url="https://github.com/coslyk/moonplayer"
license=('GPL')
depends=('python' 'qt5-x11extras' 'qt5-websockets' 'qt5-webengine' 'mpv' 'qtermwidget')
makedepends=('git')
source=(
	$pkgname-$pkgver.tar.gz::https://github.com/coslyk/moonplayer/archive/$pkgver.tar.gz
	)
provides=('moonplayer')
conflicts=('moonplayer')
sha1sums=('b782dfb2dd2148a648e1e6c95223a5a1c102aeb2')

build() {
	cd $srcdir/$pkgname-$pkgver/src
#
	find . -name '*.py' -exec sed -i \
	's|#![ ]*/usr/bin/python$|&2|;s|#![ ]*/usr/bin/env python$|&2|' {} +

	qmake-qt5 PREFIX=/usr moonplayer.pro

	make
}

package() {
	cd $srcdir/$pkgname-$pkgver/src

	make INSTALL_ROOT=$pkgdir install

	#clean pyc
	#rm $pkgdir/usr/share/moonplayer/plugins/*.pyc

	cd $pkgdir/usr/share

	mv icons pixmaps
}