blob: 7b1c924c2b959e7de2809a3b51e627af5b77eaaf (
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
|
# Maintainer: AtticFinder65536 <atticfinder -AT- rocklabs -DOT- xyz>
pkgname=('discordchatexporter-cli')
pkgver=2.39.1
pkgrel=1
pkgdesc="Exports Discord chat logs to a file"
url="https://github.com/Tyrrrz/DiscordChatExporter"
license=('GPL')
source=("${pkgname}-${pkgver}".tar.gz::https://github.com/Tyrrrz/DiscordChatExporter/archive/refs/tags/${pkgver}.tar.gz
'discordchatexporter-cli')
b2sums=('2d3068d22312748e36adeaab0a4c0218d736b9ed644cd420a0ec7e52352ef97db1b1f099e6acae73c61ec3c5c452a10fb553d6ca87b68f5f05a35eb9e9893015'
'763d7ac60315aa945557096ccaea9ded7050e75aa183860d6f5749bbcd3c2fe565aad9dec7e320673725a4213f00915c5f1c3ce1c48626fde612e765b7d1dd80')
arch=('any')
depends=('dotnet-runtime-7.0')
makedepends=('dotnet-sdk-7.0')
options=('!strip')
build(){
cd DiscordChatExporter-"${pkgver}"
dotnet publish 'DiscordChatExporter.Cli' --configuration 'Release'
}
package(){
cd DiscordChatExporter-"${pkgver}"
# Install launcher
install -Dm755 "${srcdir}"/discordchatexporter-cli "${pkgdir}"/usr/bin/discordchatexporter-cli
# Install application
cd DiscordChatExporter.Cli/bin/Release/net7.0/publish
find . -type f -exec install -Dm644 "{}" "${pkgdir}"/usr/lib/${pkgname}"/{}" \;
}
|