summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 692aa9897b9ae9623e506abeec7147e80ffd7f52 (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
49
50
51
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Sathya Pramodh <sathyapramodh17@gmail.com>
pkgname=resetti-git
_devbranch="dev"
pkgver=0.5.2_devel.r397.2a1cec7
pkgrel=1
pkgdesc="resetti is a Linux-compatible reset macro for Minecraft speedruns. It supports
a variety of different resetting styles, categories, and Minecraft versions."
arch=('x86_64' 'i686')
url="https://www.github.com/tesselslate/resetti"
license=('GPL3')
groups=()
depends=()
makedepends=('go' 'git')
checkdepends=()
optdepends=()
provides=()
conflicts=('resetti')
replaces=()
backup=()
options=()
source=("git+$url#branch=$_devbranch")
noextract=()
md5sums=('SKIP')
validategpgkeys=()

pkgver(){
    cd resetti
    printf "$(cat .version | awk -F '-' '{print $1}')_devel.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd resetti
	make build
}

package() {
	cd resetti
	install -Dm0755 out/resetti "${pkgdir}/usr/bin/resetti"
	if ! [ -d ~/.local/share/resetti ]
	then
		mkdir -p ~/.local/share/resetti
	fi
	install -Dm0755 out/bench ~/.local/share/resetti/bench
	install -Dm0664 internal/res/scene-setup.lua ~/.local/share/resetti/scene-setup.lua
	install -Dm0664 internal/res/default.toml ~/.local/share/resetti/default.toml
}