summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d105c93216a3aabfd71479b80740f189fbb4c627 (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
# Maintainer: Marc Steiner (Marc3842h) <info@marcsteiner.me>
_pkgname=titan-bot
pkgname=titan-bot-git
pkgver=1.6.1
pkgrel=3
pkgdesc="A free, advanced CS:GO report and commendation bot built with performance and ease-of-use in mind"
arch=("x86_64")
url="https://github.com/Marc3842h/Titan"
license=("MIT")
depends=("mono>=5.4.0" "gtk3" "libnotify" "libappindicator-gtk3")
makedepends=("git" "msbuild")
provides=("titan-bot")
install="Titan.install"
source=("git://github.com/Marc3842h/Titan.git" "titan" "Titan.desktop")
sha256sums=("SKIP" 
            "0c2250f46f7420e0ae09cf2d9984ace33b9f2bb8bb2dfd1b0f5fc7a51916c9ef" 
            "9355cdee632ce299182866bf8f5be425b6266c93d74110fce2d0130b15d891a2")

build() {
    cd Titan
    
    chmod +x build.sh
    ./build.sh
}

package() {
    install -Dm755 titan "$pkgdir"/usr/bin/titan
    install -Dm644 Titan.desktop "$pkgdir"/usr/share/applications/titan.desktop
    
    cd Titan
    install -Dm644 man/Titan.1 "$pkgdir"/usr/share/man/man1/Titan.1
    install -Dm644 README.md "$pkgdir"/usr/share/doc/Titan/README.md
    install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/Titan/LICENSE.txt
    install -Dm644 Titan/bin/Release/Resources/Logo.png "$pkgdir"/usr/share/pixmaps/Titan.png
    
    for f in $(ls Titan/bin/Release --hide='Resources'); do
        install -Dm755 "Titan/bin/Release/$f" "$pkgdir/opt/Titan/$f"
    done
    
    for f in $(ls Titan/bin/Release/Resources); do
        install -Dm755 "Titan/bin/Release/Resources/$f" "$pkgdir/opt/Titan/Resources/$f"
    done
}