blob: bbe68d90e78d8df55411a4780af24409e0790baf (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Marko Zivic <marko.b.zivic@gmail.com>
pkgname=endcord-git
pkgver=1.3.0
pkgrel=1
pkgdesc="Feature rich Discord TUI client."
arch=('any')
url="https://github.com/sparklost/endcord"
license=('GPL-3.0-only')
provides=('endcord')
conflicts=('endcord')
depends=()
makedepends=('python>=3.12' 'uv' 'git' 'clang' 'patchelf')
optdepends=('xclip: clipboard support on X11'
'wl-clipboard: clipboard support on Wayland'
'aspell: spellchecking'
'yt-dlp: youtube support'
'mpv: youtube in native player')
source=("git+$url.git")
sha256sums=('SKIP')
options=(!strip)
pkgver() {
cd endcord
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd endcord
export UV_NO_CACHE=1
# setup python 3.13
if uv python list --only-installed | grep -q '3.13'; then
echo "Python 3.13 is already installed"
PY_ALREADY_INSTALLED=true
else
uv python install 3.13
PY_ALREADY_INSTALLED=false
fi
uv sync --all-groups
}
build() {
cd endcord
uv run build.py --nuitka --clang
# remove python 3.13
if [ "$PY_ALREADY_INSTALLED" != "true" ]; then
uv python uninstall 3.13 # Or exact version from 'uv python list'
fi
}
package() {
cd endcord
install -Dm755 ./dist/endcord "$pkgdir/usr/bin/endcord"
install -Dm644 ./README.md "$pkgdir/usr/share/doc/endcord/README.md"
install -Dm644 ./commands.md "$pkgdir/usr/share/doc/endcord/commands.md"
install -Dm644 ./configuration.md "$pkgdir/usr/share/doc/endcord/configuration.md"
install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/endcord/LICENSE"
# install -Dm644 endcord.desktop "$pkgdir/usr/share/applications/endcord.desktop"
# install -Dm644 endcord.svg "$pkgdir/usr/share/icons/hicolor/256x256/apps/endcord.svg"
}
|