blob: 6943b3bb77c80632df9b737f9a306a562fc87233 (
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: javsanpar <javsanpar@riseup.net>
pkgname=abaddon-git
_pkgname=abaddon
pkgver=0.r360.5394c67
pkgrel=1
pkgdesc='An alternative Discord client made with C++/gtkmm'
url='https://github.com/uowuo/abaddon'
source=("git+https://github.com/uowuo/abaddon")
arch=('x86_64')
license=('GPL3')
makedepends=('git' 'cmake' 'make' 'gcc' 'nlohmann-json' 'pkgconf')
depends=('gtkmm3')
conflicts=('abaddon')
provides=('abaddon')
sha256sums=(SKIP)
prepare () {
cd "$_pkgname"
git submodule init
git submodule update
}
build () {
cmake -B build -S "$_pkgname"
make -C build
}
package() {
install -Dm755 build/abaddon "$pkgdir"/opt/abaddon/abaddon
install -Dm644 "$_pkgname"/css/* -t "$pkgdir"/opt/abaddon/css
install -Dm644 "$_pkgname"/res/* -t "$pkgdir"/opt/abaddon/res
install -Dm666 /dev/null "$pkgdir"/opt/abaddon/abaddon.ini
install -Dm755 /dev/null "$pkgdir"/usr/bin/abaddon
cat - > "$pkgdir"/usr/bin/abaddon <<EOF
#!/bin/sh
cd /opt/abaddon
./abaddon $@
EOF
}
pkgver() {
cd "$_pkgname"
printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
|