summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3ac6cbcb2537b823befc462c0b49934dc64c78a (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
# Maintainer: shmilee <shmilee.zju@gmail.com>
# Maintainer: MJsaka <qiuxuenan@gmail.com>

pkgname=kwplayer
pkgver=3.5.2
pkgrel=1
pkgdesc='An elegant music player which can get songs from kuwo.cn'
arch=('any')
license=('GPL3')
url="https://github.com/LiuLang/kwplayer"
depends=('python-cairo' 'python-html2text' 'python-gobject' 'gtk3' 'python-dbus' 'dbus-glib' 'python-ply'
         'gst-plugins-base' 'gst-plugins-ugly' 'gst-plugins-good' 'gstreamer' 'gst-libav'
         'gnome-icon-theme-symbolic')
optdepends=('python-mutagenx: convert ID3 tag from GBK to UTF-8'
            'plyvel: use leveldb for cache data'
            'python3-keybinder: global keyboard shortcuts')
conflicts=(kwplayer-git)
source=("https://pypi.python.org/packages/source/k/kwplayer/${pkgname}-${pkgver}.tar.gz")
md5sums=('3b446246b7a690e9e91fd5380053d11e')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python setup.py install --root="$pkgdir"
    #sed -i 's/Icon=kwplayer/Icon=kwplayer.png/' "$pkgdir"/usr/share/applications/kwplayer.desktop
}