summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93ea454131e0ed0cc2e9c103d0110c1362cd575e (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
pkgname=iastfyp
pkgver=1.1.1
pkgrel=1
pkgdesc="IaSTFyP - Ironically a Stress Test For Your PC (turtle + tkinter simulation)"
arch=('x86_64')
url="https://aur.archlinux.org/packages/iastfyp"
license=('GPL')

depends=('python' 'tk')
makedepends=('pyinstaller')

source=("iastfyp.py")

sha256sums=('SKIP')

options=(!debug)

build() {
    cd "$srcdir"

    pyinstaller \
        --noconfirm \
        --clean \
        --onefile \
        --name iastfyp \
        iastfyp.py
}

package() {
    cd "$srcdir"

    # install binary
    install -Dm755 "dist/iastfyp" "$pkgdir/usr/bin/iastfyp"

    # desktop entry
    install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/iastfyp.desktop" << EOF
[Desktop Entry]
Name=IaSTFyP
Comment=Ironically a Stress Test For Your PC
Exec=iastfyp
Icon=utilities-system-monitor
Terminal=false
Type=Application
Categories=System;Utility;
EOF
}