summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b25eea61c7d0acb153ef56560c600344409b260a (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
# Maintainer: vanillamilkk <vanilla@kcml.my.id>
pkgname=gamesneeze-git
pkgver=r537.f5bac9c
pkgrel=1
pkgdesc="An open source training utility for Counter-Strike: Global Offensive on Linux."
arch=('x86_64')
url="https://github.com/seksea/gamesneeze"
license=('MIT')
depends=('git' 'cmake' 'gdb' 'sdl2' 'clang')
optdepends=('steam: downloading csgo with steam'
            'steam-native-runtime: downloading csgo with steam from native library')
source=("git+https://github.com/seksea/gamesneeze.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$pkgname"
    mkdir -p build
    cd build
    cmake -D CMAKE_BUILD_TYPE=Release ..
    make -j $(nproc --all)
}

package() {
    install -Dm 644 gamesneeze.desktop "${pkgdir}/usr/share/applications/gamesneeze.desktop"
    install -Dm 644 res/gamesneeze.png "${pkgdir}/usr/share/pixmaps/gamesneeze.png"
    install -Dm 500 toolbox.sh "${pkgdir}/opt/gamesneeze/toolbox.sh"
    install -Dm 755 gdb "${pkgdir}/opt/gamesneeze/gdb"
    cd "$srcdir/build"
    mkdir -p "${pkgdir}/opt/gamesneeze"
    mkdir -p "${pkgdir}/opt/gamesneeze/build"
    install -Dm 500 libgamesneeze.so "${pkgdir}/opt/gamesneeze/build/libgamesneeze.so"
}