blob: 5e812526f1ce13c45bc679c227d3aefed5a415eb (
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
|
# Maintainer: Ambition_echo <ambition_echo@outlook.com>
name=colutius-desktop
pkgname=colutius-desktop-git
pkgver=r41.9152063
pkgrel=1
pkgdesc="A cross-platform, easy-to-use and beautiful IRC client"
arch=('x86_64')
url="https://github.com/colutius/colutius-desktop"
license=('GPL3')
depends=('qt6-base' 'qt6-svg')
makedepends=('cmake' 'git' 'make')
optdepends=('fcitx5-qt: fcitx5 support')
source=("git+$url.git")
sha256sums=("SKIP")
pkgver() {
cd $name
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd $srcdir/$name
git submodule update --init
cd ..&&mkdir build&&cd build
touch Colutius_log.txt
}
build() {
cd build
cmake ../$name
make
}
package() {
cd $name
install -Dm644 ./resource/img/icon.svg $pkgdir/usr/share/icons/colutius.svg
install -Dm644 ./pkg/$name.desktop $pkgdir/usr/share/applications/$name.desktop
cd ../build
install -D ./$name -t $pkgdir/opt/$name
install -Dm644 ./libs/* $pkgdir/opt/$name/libs
install -Dm666 ./Colutius_log.txt $pkgdir/opt/$name/Colutius_log.txt
}
|