blob: 7882073cf60bf5646f933f5d4c7821d1286d7616 (
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: Manuel Schneider <kontakt at brainyxs dot com>
pkgname=twitchleecher-dx
_pkgname=TwitchLeecher-Dx
pkgdesc="A simple download tool for Twitch streams"
pkgver=3.7.4
_pkgver=3.7.4
pkgrel=1
arch=('x86_64')
url='https://github.com/schneidermanuel/TwitchLeecher-Dx'
license=("MIT")
depends=("icu" "ffmpeg")
makedepends=("dotnet-sdk")
options=("staticlibs")
source=("$url/archive/refs/tags/v$_pkgver.tar.gz")
sha256sums=('5719dd14abdd83a0f5821ef1d214013e2ac40d77a4cf6468788b366b941db33a')
build() {
cd "$_pkgname-$_pkgver/TwitchLeecher/TwitchLeecher"
MSBUILDDISABLENODEREUSE=1 dotnet publish \
--configuration Release \
--self-contained true \
--runtime linux-x64 \
-p:PublishTrimmed=true \
--output ../../$pkgname \
./TwitchLeecher.csproj
}
package() {
cd "$_pkgname-$_pkgver"
install -d $pkgdir/usr/{bin,lib}
install -d $pkgdir/usr/share/{pixmaps,applications}
cp -r $pkgname "$pkgdir/usr/lib/"
ln -s "/usr/lib/$pkgname/TwitchLeecher" "$pkgdir/usr/bin/$pkgname"
cp TwitchLeecher/Resources/Images/TL_Icon.png "$pkgdir/usr/share/pixmaps/twitchleecher-dx.png"
cp twitchleecher-dx.desktop "$pkgdir/usr/share/applications/twitchleecher-dx.desktop"
}
|