blob: f46df20ba7fc6c69d6e7b06c6a8904e0546a7976 (
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
|
# Maintainer: Woshiluo Luo <woshiluo@woshiluo.site>
pkgname=bililive-recorder
_pkgname=bililive-recorder
provides=($_pkgname)
conflicts=($pkgname-bin)
pkgver=2.12.0
pkgrel=1
pkgdesc='B站录播姬 | BiliBili Stream Recorder | 哔哩哔哩直播录制'
arch=('x86_64')
# options=(staticlibs)
url='https://github.com/Bililive/BililiveRecorder'
license=('GPL3')
provides=("$_pkgname")
depends=(aspnet-runtime)
makedepends=(git dotnet-sdk nodejs npm)
source=(git+https://github.com/BililiveRecorder/BililiveRecorder#tag=v${pkgver})
sha256sums=('SKIP')
prepare() {
cd ${srcdir}/BililiveRecorder
git submodule update --init --recursive
}
build() {
cd ${srcdir}/BililiveRecorder
./webui/build.sh
dotnet publish -c Release BililiveRecorder.Cli/BililiveRecorder.Cli.csproj -r linux-x64
}
package() {
cd $srcdir/BililiveRecorder
install -d $pkgdir/usr/lib/
install -d $pkgdir/usr/bin/
cp -ra BililiveRecorder.Cli/publish/linux-x64/Release/. $pkgdir/usr/lib/bililive-recorder
ln -s /usr/lib/bililive-recorder/BililiveRecorder.Cli "$pkgdir/usr/bin/BililiveRecorder.Cli"
}
|