summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0db7163064eac66126e4f41a65e5bece7c8caa27 (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.5.7
_pkgver=3.5.7
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=('6828fad16783716e8d5dbddebcc9e234317467e7dbc53d7bc01c8e083c34b7d7')

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"
}