blob: 5c5d9f1f40cd4aed9055d35a4be74e13113a6ce0 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Jiachen Yang <farseerfc@gmail.com>
# Contributor: Ariel AxionL <axionl@aosc.io>
pkgbase=netease-musicbox-git
pkgname=(netease-musicbox-git netease-musicbox-py2-git)
_gitname=musicbox
pkgver=r567.4820cb0
pkgrel=1
pkgdesc="A sexy command line interface musicbox for NetEase based on Python"
arch=(any)
url="https://github.com/darknessomi/musicbox"
depends=()
optdepends=('aria2: music caching'
'libnotify: notifications')
license=('MIT')
_py2depends=('python2' 'python2-requests' 'python2-setuptools' 'mpg123'
'python2-future' 'python2-pycryptodomex' 'python2-requests-cache')
_py3depends=('python' 'python-requests' 'python-setuptools' 'mpg123'
'python-future' 'python-pycryptodomex' 'python-requests-cache')
makedepends=('git'
${_py2depends[@]}
${_py3depends[@]}
) # both python and python2 depends goes to makedepends
options=(!emptydirs)
provides=('netease-musicbox')
conflicts=('netease-musicbox')
install=$pkgname.install
source=("git+https://github.com/darknessomi/musicbox")
sha256sums=('SKIP')
pkgver() {
cd $_gitname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package_netease-musicbox-py2-git() {
replace=("netease-musicbox-git<=r515.7dfd3fe-1")
depends=(${_py2depends[@]})
optdepends=('aria2: music caching'
'python2-keybinder2: global keybindings'
'libnotify: notifications'
'python2-pyqt4: lyrics support'
'python2-dbus: lyrics support'
)
cd "$srcdir/$_gitname"
python2 setup.py install --root="$pkgdir/" --optimize=1
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
install -m755 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
}
package_netease-musicbox-git() {
depends=(${_py3depends[@]})
optdepends=('aria2: music caching'
'libnotify: notifications'
'python-pyqt4: lyrics support'
'python-dbus: lyrics support'
)
cd "$srcdir/$_gitname"
python setup.py install --root="$pkgdir/" --optimize=1
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
install -m755 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
}
# vim:set ts=2 sw=2 et:
|