Skip to content

Instantly share code, notes, and snippets.

@synthead
Created November 15, 2022 23:52
Show Gist options
  • Save synthead/c71664e47c3662aea0f0cce0bdbd37e6 to your computer and use it in GitHub Desktop.
Save synthead/c71664e47c3662aea0f0cce0bdbd37e6 to your computer and use it in GitHub Desktop.
# 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"
}
@rsubtil
Copy link

rsubtil commented Nov 23, 2022

Thanks for this PKGBUILD. Note that this installs the binary as DiscordChatExporter.Cli, you may want to rename it to discord-chat-exporter-cli on line 36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment