blob: f7520df0377af8fc98892e08a0e80d42b8a7fde0 (
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
44
45
46
47
48
49
|
# maintainer: hzy068808 at gmail.com
# contributer: a304yuanyuan at gmail.com
# contributer: rob.til.freedman@googlemail.com
pkgname=moonplayer-git
_pkgname=moonplayer
pkgver=2.7.r467
pkgrel=1
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=(
"git+https://github.com/coslyk/moonplayer#branch=master"
)
provides=('moonplayer')
conflicts=('moonplayer')
sha1sums=('SKIP')
pkgver(){
cd $srcdir/$_pkgname
echo $(grep "Latest version" README.md | awk '{ print $3 }' | sed 's/^v//g')."r$(git rev-list --count HEAD)"
}
build() {
cd $srcdir/$_pkgname/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/src
make INSTALL_ROOT=$pkgdir install
#clean pyc
# rm $pkgdir/usr/share/moonplayer/plugins/*.pyc
cd $pkgdir/usr/share
mv icons pixmaps
}
|