Package Details: bililocal-git 467.595c40c-1

Git Clone URL: https://aur.archlinux.org/bililocal-git.git (read-only, click to copy)
Package Base: bililocal-git
Description: Video player that can display barrage-like comments grabbed from danmaku websites like bilibili.com,acfun.tv and niconico.jp.
Upstream URL: http://github.com/AncientLysine/BiliLocal
Keywords: 2016 broken brokensource eol to-be-deleted unneeded
Licenses: GPL
Conflicts: bililocal
Provides: bililocal
Submitter: maz-1
Maintainer: None
Last Packager: maz-1
Votes: 1
Popularity: 0.000000
First Submitted: 2015-10-04 07:09 (UTC)
Last Updated: 2015-10-04 07:11 (UTC)

Latest Comments

szdytom commented on 2023-10-20 01:17 (UTC)

需要添加依赖 qt5-multimedia,源码下载协议需要改为 git+https://

另外,需要目前对 src/Player/VPlayer.cpp 应用如下 patch 避免 CE:

diff --git a/src/Player/VPlayer.cpp b/src/Player/VPlayer.cpp
index bcdb3fb..47d8b7d 100644
--- a/src/Player/VPlayer.cpp
+++ b/src/Player/VPlayer.cpp
@@ -10,7 +10,7 @@

 namespace
 {
-   QMutex time_qmutex;
+   QMutex time;

    class PixelBuffer : public ABuffer
    {
@@ -184,11 +184,11 @@ namespace

    void mid(const libvlc_event_t *, void *)
    {
-       if (time_qmutex.tryLock()) {
+       if (::time.tryLock()) {
            QMetaObject::invokeMethod(lApp->findObject<APlayer>(),
                "timeChanged",
                Q_ARG(qint64, lApp->findObject<APlayer>()->getTime()));
-           time_qmutex.unlock();
+           ::time.unlock();
        }
    }

@@ -392,11 +392,11 @@ void VPlayer::setTime(qint64 _time)
            }
        }
        else{
-           time_qmutex.lock();
+           ::time.lock();
            qApp->processEvents();
            emit jumped(_time);
            libvlc_media_player_set_time(mp, qBound<qint64>(0, _time, getDuration()));
-           time_qmutex.unlock();
+           ::time.unlock();
        }
    }
 }

可以先对 PKGBUILD 使用下边的patch规避以上三个问题:

diff --git a/PKGBUILD b/PKGBUILD
old mode 100755
new mode 100644
index 8c9756b..8d128fb
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,17 +2,17 @@

 _pkgname=bililocal
 pkgname=$_pkgname-git
-pkgver=467.595c40c
+pkgver=564.8041ad2
 pkgrel=1
 pkgdesc="Video player that can display barrage-like comments grabbed from danmaku websites like bilibili.com,acfun.tv and niconico.jp. "
 arch=('x86_64' 'i686')
 url="http://github.com/AncientLysine/BiliLocal"
 license=('GPL')
-depends=('qt5-base' 'vlc')
+depends=('qt5-base' 'vlc' 'qt5-multimedia')
 makedepends=('git' 'qt5-tools')
 provides=($_pkgname)
 conflicts=($_pkgname)
-source=("git://github.com/AncientLysine/$_pkgname.git"
+source=("git+https://github.com/szdytom/$_pkgname.git"
         "bililocal.svg"
          "bililocal.desktop")
 md5sums=('SKIP'