blob: ce855029dd5a440a8962146ce1fc19438dcbf28b (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Maintainer: juanrubio
_githubname=tizonia-openmax-il
pkgname=tizonia-all-git
pkgver=0.17.0.r3.gf55b8759
pkgrel=1
pkgdesc="Command-line cloud music player for Linux with support for Spotify, Google Play Music, YouTube, SoundCloud, Dirble, Plex servers and Chromecast devices."
arch=('x86_64')
url="https://www.tizonia.org"
license=('LGPL')
depends=(
# official repositories:
'libmad'
'sqlite'
'libutil-linux'
'taglib'
'mediainfo'
'sdl'
'lame'
'faad2'
'libcurl-gnutls'
'libvorbis'
'libvpx'
'mpg123'
'opus'
'opusfile'
'libogg'
'libfishsound'
'flac'
'liboggz'
'libsndfile'
'alsa-lib'
'libpulse'
'boost'
'check'
'python2-pafy'
'python2-eventlet'
# AUR:
'log4c'
'libspotify'
'python2-gmusicapi'
'python2-soundcloud-git'
'python2-youtube-dl-git'
'python2-pychromecast-git'
'python-plexapi'
'python2-fuzzywuzzy'
'python2-eventlet'
'python2-spotipy'
)
provides=('tizonia-all')
conflicts=('tizonia-all')
source=("${pkgname}"::"git+https://github.com/tizonia/${_githubname}.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
local _version="$(git tag | sort -Vr | head -n1 | sed 's/^v//')"
local _revision="$(git rev-list v"${_version}"..HEAD --count)"
local _shorthash="$(git rev-parse --short HEAD)"
printf '%s.r%s.g%s' "$_version" "$_revision" "$_shorthash"
}
prepare() {
command -v tizonia &> /dev/null \
&& { \
echo >&2 "Please uninstall tizonia-all or tizonia-all-git before proceeding." ; \
echo >&2 "See https://github.com/tizonia/tizonia-openmax-il/issues/485." ; \
exit 1; }
mkdir -p "$srcdir/path"
# Tizonia expects Python 2
ln -sf /usr/bin/python2 "$srcdir/path/python"
ln -sf /usr/bin/python2-config "$srcdir/path/python-config"
}
build() {
export PATH="$srcdir/path:$PATH"
export PYTHON="/usr/bin/python2"
cd "$pkgname"
autoreconf -ifs
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--silent \
--enable-silent-rules \
CFLAGS='-O2 -s -DNDEBUG' \
CXXFLAGS='-O2 -s -DNDEBUG -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security'
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir/" install
}
|