blob: 1b2c8497e8484ab9f8644eccbd62421a8a98b99a (
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
|
pkgname=bbdown-git
pkgver=r323.8f07002
pkgrel=1
pkgdesc="一款命令行式哔哩哔哩下载器. Bilibili Downloader."
arch=("x86_64" "aarch64")
url="https://github.com/nilaoda/BBDown"
license=("MIT")
depends=("zlib" "gcc-libs" "ffmpeg")
makedepends=("git" "dotnet-sdk>=7")
provides=("bbdown")
conflicts=("bbdown")
source=('git+https://github.com/nilaoda/BBDown.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/BBDown"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/BBDown"
if [ "$CARCH" == "aarch64" ]; then
msg2 "build for arm64"
dotnet publish BBDown -r linux-arm64 -c Release -o artifact
else
msg2 "build for x64"
dotnet publish BBDown -r linux-x64 -c Release -o artifact
fi
strip artifact/BBDown
}
package() {
mkdir -p "$pkgdir/usr/bin"
cp "$srcdir/BBDown/artifact/BBDown" "$pkgdir/usr/bin"
}
|