Archlinux的aur里有酷我音乐盒了,不过在正常情况下编译会出现gi.repository模块导入错误的情况,这是因为系统默认的python是2.x,而gi.repository模块是python3.x里的,改了一下PKGBUILD.python的版本是3.3

保存成PKGBUILD文件,makepkg PKGBUILD.

# PKGBUILD for kwplayer 2013-10-19
# Contributor: MJsaka
# Changed by:hsyyf <931107419@qq.com>
# Copyright
# This PKGBUILD published with the GPLv3 license

pkgname=kwplayer
pkgver=3.2.8
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>=3.3' 'python-dbus' 'python-gobject' 'gstreamer' 'gst-libav' 'gst-plugins-base' 'gst-plugins-good' 'gst-plugins-ugly' 'gnome-icon-theme-symbolic')
optdepends=('python-mutagenx: convert ID3 tag from GBK to UTF-8' 'leveldb: local cache database' 'plyvel: python3 binding of leveldb' 'python-xlib: X11 library for python' 'python-keybinder: to support global keyboard shortcuts')
source=("https://pypi.python.org/packages/source/k/kwplayer/${pkgname}-${pkgver}.tar.gz")
md5sums=('827fe45a8d2d5a05a57f99eaf04829e9')

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

package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python3.3 setup.py install --root="$pkgdir"
}

执行:yaourt -U kwplayer-3.2.8-1-any.pkg.tar.xz安装

作者 hsyyf

在 “arch安装酷我音乐盒PKGBUILD” 有 1 条评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注