# Maintainer: cgar pkgname='discord-chat-exporter-plus-cli' _apkgname='DiscordChatExporter' _gpkgname='DiscordChatExporterPlus' pkgver=2.43.3 pkgrel=1 pkgdesc='Exports Discord chat logs to a file (without the political bloat)' url="https://github.com/nulldg/$_gpkgname" license=(MIT) arch=(any) conflicts=('discord-chat-exporter-cli') source=( "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz" "$pkgname" ) b2sums=( 63b4743740ba1c50ab1b0ad10b4f66ec8d22ae9e8162d6bba3f1700a41cd834e34d754bfafbf8b78ddbeaa800a58fa8dcc6676292b8301ebbd4af8c0b1b44131 f04af622af8aee1c08beb6444aa7e46db9c55180a7cd87f0fceb2dce9d27052883be6322074a8944ff51af142e8d104d5ae89c2b54e79700769d1dabc38328e0 ) options=('!strip') depends=('dotnet-runtime-8.0') makedepends=('dotnet-sdk-8.0') build() { cd "$_gpkgname-$pkgver" dotnet publish "$_apkgname.Cli" --configuration "Release" } package() { install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" cd "$_gpkgname-$pkgver" install -Dm644 License.txt "$pkgdir/usr/share/licenses/$pkgname/License.txt" cd "$_apkgname.Cli/bin/Release/net8.0/linux-x64/publish" find . -type f -exec install -Dm644 "{}" "$pkgdir/usr/lib/$pkgname/{}" \; }