Skip to content

Instantly share code, notes, and snippets.

@yannleretaille
Last active February 27, 2021 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yannleretaille/66b86240a2f455931d24b26ea3c3b23f to your computer and use it in GitHub Desktop.
Save yannleretaille/66b86240a2f455931d24b26ea3c3b23f to your computer and use it in GitHub Desktop.
tizonia-all 0.22.0-1: fix build issue with newer versions boost (tizgraphmgr.cpp:336:57: error: ‘_1’ was not declared in this scope)
# Maintainer: juanrubio
_githubname=tizonia-openmax-il
pkgname=tizonia-all
pkgver=0.22.0
pkgrel=1
pkgdesc="Command-line cloud music player for Linux with support for Spotify, Google Play Music, YouTube, SoundCloud, TuneIn, iHeartRadio, Plex servers and Chromecast devices."
arch=('x86_64')
url="https://tizonia.org"
license=('LGPL')
makedepends=(git boost meson ninja)
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-libs'
'hicolor-icon-theme'
'python-pafy'
'python-eventlet'
'youtube-dl'
'python-levenshtein'
'python-joblib'
# AUR:
'log4c'
'libspotify'
'python-gmusicapi'
'python-soundcloud'
'python-pychromecast'
'python-plexapi'
'python-fuzzywuzzy'
'python-spotipy'
)
source=("${_githubname}-${pkgver}.tar.gz"::"https://github.com/tizonia/${_githubname}/archive/v${pkgver}.tar.gz")
md5sums=('236dd33a25700bf8d752af17b95bd50f')
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; }
#temporary fix for https://github.com/tizonia/tizonia-openmax-il/issues/765
sed -i 's/boost::bind (&tiz::graphmgr::mgr::volume, this, _1));/boost::bind (\&tiz::graphmgr::mgr::volume, this, boost::placeholders::_1));/' "$srcdir/${_githubname}-${pkgver}/player/src/tizgraphmgr.cpp"
mkdir -p "$srcdir/path"
}
build() {
cd "${_githubname}-${pkgver}"
pwd
CFLAGS='-O2 -s -DNDEBUG' \
CXXFLAGS='-O2 -s -DNDEBUG -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' \
arch-meson build -Dbashcompletiondir=/usr/share/bash-completion/completions -Dzshcompletiondir=/usr/share/zsh/site-functions
ninja -j1 -C build
}
package() {
cd "${_githubname}-${pkgver}"
pwd
DESTDIR=$pkgdir ninja -C build install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment