blob: ebaa8d83ab3585c3483f354de2422369d1a87f39 (
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.r401.c43b39f
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)"
}
|