-
-
Save synthead/c71664e47c3662aea0f0cce0bdbd37e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: JianQing Liu <me at pegasis dot site> | |
# Contributor: Maxwell Pray <synthead@gmail.com> | |
pkgname=discord-chat-exporter-cli | |
pkgver=2.36.4 | |
pkgrel=1 | |
pkgdesc="Export message history from a Discord channel to a file" | |
arch=('any') | |
url="https://github.com/Tyrrrz/DiscordChatExporter" | |
license=('GPL') | |
depends=('dotnet-runtime>=6') | |
makedepends=('unzip') | |
source=("https://github.com/Tyrrrz/DiscordChatExporter/archive/refs/tags/$pkgver.tar.gz") | |
sha256sums=('ad68262ceccc88cf8b1239b55202b6274cf8b44d5f29f839ee13a380fc0f1829') | |
options=("!strip") | |
build() { | |
cd "$srcdir/DiscordChatExporter-$pkgver/DiscordChatExporter.Cli" | |
dotnet build . | |
dotnet publish . \ | |
-c Release \ | |
-o dist/linux-x64/ \ | |
-r linux-x64 \ | |
-p:PublishSingleFile=true \ | |
-p:PublishTrimmed=true \ | |
--self-contained true \ | |
/p:DebugType=None \ | |
/p:IncludeNativeLibrariesForSelfExtract=true | |
} | |
package() { | |
install -Dm 755 \ | |
"$srcdir/DiscordChatExporter-$pkgver/DiscordChatExporter.Cli/dist/linux-x64/DiscordChatExporter.Cli" \ | |
"$pkgdir/usr/bin/DiscordChatExporter.Cli" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this PKGBUILD. Note that this installs the binary as
DiscordChatExporter.Cli
, you may want to rename it todiscord-chat-exporter-cli
on line 36.