blob: ec5113e4ae2ff4341336aa25cb43d190d90b4e81 (
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
50
|
# Maintainer: Jiachen Yang <farseerfc@gmail.com>
# Maintainer: Ariel AxionL <axiionl@aosc.io>
pkgname=netease-musicbox-git
_gitname=musicbox
pkgver=r577.cdcbd50
pkgrel=1
pkgdesc="A sexy command line interface musicbox for NetEase based on Python"
arch=(any)
url="https://github.com/darknessomi/musicbox"
depends=('mpg123' 'python-pycryptodomex' 'python-requests' 'python-future')
makedepends=('python-setuptools' 'git')
optdepends=('aria2: music caching'
'libnotify: notifications'
'qt5-base: lyrics support'
'python-pyqt5: lyrics support'
'python-dbus: lyrics support')
provides=('netease-musicbox')
conflicts=('netease-musicbox')
install=${pkgname}.install
license=('MIT')
source=("${_gitname}::git+https://github.com/darknessomi/musicbox"
"LICENSE::https://raw.githubusercontent.com/darknessomi/musicbox/master/LICENSE.txt"
"0001-Remove_python_requests_cache_as_depends.patch"
"0002-Replace_pyqt4_to_pyqt5_as_depends.patch")
sha256sums=('SKIP'
'50efc98142cfffe413d73c87c91f2687dfb774217af923f03dfdc8426c9d9552'
'0faefb24ad158814cda0a5fd2262c2308182d22791587382d68da09922338052'
'f9c95f8441f43fc13c2cadb1f62b6e33658474f7671d11b3f0a66fe322e0a9e9')
pkgver() {
cd "${srcdir}/${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_gitname}"
git apply "${srcdir}/0001-Remove_python_requests_cache_as_depends.patch"
git apply "${srcdir}/0002-Replace_pyqt4_to_pyqt5_as_depends.patch"
}
package() {
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "${srcdir}/${_gitname}"
python setup.py install --root="${pkgdir}/" --optimize=1
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|