summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOriginCode2020-06-17 11:20:37 +0800
committerOriginCode2020-06-17 11:20:37 +0800
commite34adc5cf58794a33b7bbdc7d1c2baec503fd7af (patch)
tree76ef36810a45eb9a34e66bc4add907cb5ee015d8
parentc721f97f2387aa3229d8aef20adf62dc4d9485aa (diff)
downloadaur-bilibili-live-helper-bin.tar.gz
bilibili-live-helper-bin: 2.2.2-1
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD11
-rw-r--r--bilibili-live-helper.install4
3 files changed, 10 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 87dd1fd7510..ab4d3684656 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = bilibili-live-helper-bin
pkgdesc = A Helper for Bilibili Live Broadcasting.
- pkgver = 2.2.1
+ pkgver = 2.2.2
pkgrel = 1
url = http://bilibili.danmaku.live/
install = bilibili-live-helper.install
@@ -14,10 +14,10 @@ pkgbase = bilibili-live-helper-bin
provides = bilibili-live-helper
conflicts = bilibili-live-helper-git
replaces = bilibili-live-helper
- source = http://s2.danmaku.live/弹幕库-linux-v2.2.1.zip
+ source = http://s2.danmaku.live/弹幕库-linux-v2.2.2.zip
source = Bilibili Live Helper.desktop
source = bilibili-live-helper.ico
- sha512sums = bab3a671f8cdf235781024434baec7c7a65565fe5aa892a41f1d81534d5fdf68812d25d039eafa1d61501985078fc15a94492396cb080a763c41c2b0cac7b97d
+ sha512sums = fd22e2e761955ade7d58b0a251f65706b97abfec97d7aa01b98e31783ed784286ad57565583b4e93ededcb2c36dce3d4fd427a0ca78124445465ec4add9b269a
sha512sums = 3e6be3336af1edb333ca519ff01fd4b43920bb02c1197c6768b6bd95abed7e851b4711bcba018d29ce725c7aaf3a202f92427dfb6f9cf0db62fee084b24672a5
sha512sums = e9e2ca9da776ddcf8f259dad2deab208998f22238b2d4ff05d69955324729b71add6b6e628b4b7add354791b175e15525a9ec8371a7ece65a6a8ebe6e052c0e1
diff --git a/PKGBUILD b/PKGBUILD
index fff17045719..ef91b2cd890 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=bilibili-live-helper-bin
_entryname="Bilibili Live Helper"
_srcname="弹幕库"
_pkgname=bilibili-live-helper
-pkgver=2.2.1
+pkgver=2.2.2
pkgrel=1
pkgdesc="A Helper for Bilibili Live Broadcasting."
arch=('x86_64')
@@ -16,7 +16,7 @@ conflicts=('bilibili-live-helper-git')
replaces=('bilibili-live-helper')
provides=('bilibili-live-helper')
source=("http://s2.danmaku.live/$_srcname-linux-v$pkgver.zip" "$_entryname.desktop" "$_pkgname.ico")
-sha512sums=('bab3a671f8cdf235781024434baec7c7a65565fe5aa892a41f1d81534d5fdf68812d25d039eafa1d61501985078fc15a94492396cb080a763c41c2b0cac7b97d'
+sha512sums=('fd22e2e761955ade7d58b0a251f65706b97abfec97d7aa01b98e31783ed784286ad57565583b4e93ededcb2c36dce3d4fd427a0ca78124445465ec4add9b269a'
'3e6be3336af1edb333ca519ff01fd4b43920bb02c1197c6768b6bd95abed7e851b4711bcba018d29ce725c7aaf3a202f92427dfb6f9cf0db62fee084b24672a5'
'e9e2ca9da776ddcf8f259dad2deab208998f22238b2d4ff05d69955324729b71add6b6e628b4b7add354791b175e15525a9ec8371a7ece65a6a8ebe6e052c0e1')
_dirname="$_srcname-linux-x64"
@@ -27,8 +27,11 @@ build() {
}
package() {
- install -Dd "$pkgdir/opt/$_pkgname"
- cp -r "$srcdir/$_dirname"/* "$pkgdir/opt/$_pkgname"
+ mkdir -p "$pkgdir/opt/"
+ cp -r "$srcdir/$_dirname" "$pkgdir/opt/$_pkgname"
install -Dm755 ./"$_entryname.desktop" "$pkgdir/usr/share/applications/$_entryname.desktop"
install -Dm444 ./"$_pkgname.ico" "$pkgdir/usr/share/icons/hicolor/128x128/$_pkgname.ico"
+
+ mkdir -p "$pkgdir/usr/bin/"
+ ln -s ../../opt/bilibili-live-helper/bilibili-live-helper "$pkgdir/usr/bin/bilibili-live-helper"
}
diff --git a/bilibili-live-helper.install b/bilibili-live-helper.install
index eb725679e85..08febb30bce 100644
--- a/bilibili-live-helper.install
+++ b/bilibili-live-helper.install
@@ -1,7 +1,3 @@
post_install() {
- ln -s /opt/bilibili-live-helper/bilibili-live-helper /usr/bin/bilibili-live-helper
echo "For transparent support, please add these arguments: --enable-transparent-visuals and --disable-gpu"
}
-pre_remove() {
- rm /usr/bin/bilibili-live-helper
-}