blob: ef91b2cd89088bd49b3220cd2bbf663ed9b1a637 (
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
|
# Maintainer: OriginCode <origincoder@yahoo.com>
pkgname=bilibili-live-helper-bin
_entryname="Bilibili Live Helper"
_srcname="弹幕库"
_pkgname=bilibili-live-helper
pkgver=2.2.2
pkgrel=1
pkgdesc="A Helper for Bilibili Live Broadcasting."
arch=('x86_64')
url="http://bilibili.danmaku.live/"
install=$_pkgname.install
license=('custom')
depends=('libxtst' 'gtk3' 'libxss' 'nss' 'alsa-lib')
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=('fd22e2e761955ade7d58b0a251f65706b97abfec97d7aa01b98e31783ed784286ad57565583b4e93ededcb2c36dce3d4fd427a0ca78124445465ec4add9b269a'
'3e6be3336af1edb333ca519ff01fd4b43920bb02c1197c6768b6bd95abed7e851b4711bcba018d29ce725c7aaf3a202f92427dfb6f9cf0db62fee084b24672a5'
'e9e2ca9da776ddcf8f259dad2deab208998f22238b2d4ff05d69955324729b71add6b6e628b4b7add354791b175e15525a9ec8371a7ece65a6a8ebe6e052c0e1')
_dirname="$_srcname-linux-x64"
build() {
cd "$srcdir/$_dirname"
mv "$_srcname" "$_pkgname"
}
package() {
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"
}
|