summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e62caac6c945aa6e9829c9d4e39eba3baa71339 (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
52
53
54
55
56
57
58
59
60
# 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: maksim Kononykhin <kononelder@gmail.com>
pkgname=trackpointsound
pkgver=1.0.0
pkgrel=2
epoch=
pkgdesc="adds the ability to play sound when you touch a trackpoint"
arch=("x86_64")
url="https://github.com/WindowsKonon1337/TrackPointSound"
license=('MIT')
groups=()
depends=("sfml")
makedepends=("cmake" "base-devel" "systemd" "git")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/WindowsKonon1337/TrackPointSound.git")

noextract=()
sha256sums=('SKIP')
validpgpkeys=()

prepare() {
	mkdir "$pkgname-$pkgver"
	cd "$pkgname-$pkgver"
	git clone $source

	cd ./TrackPointSound/TrackpointSound
	mkdir -p "$HOME/.trackpointsound/audio/"
	install -Dm644 ./audio/* "$HOME/.trackpointsound/audio/"

	#patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
}

build() {
	cd "$pkgname-$pkgver/TrackPointSound"
	cmake -B ../build -S .
	cd ../build/TrackpointSound
	make
}

# check() {
# 	cd "$pkgname-$pkgver"
# 	make -k check
# }

package() {
    cd "$pkgname-$pkgver"/build/TrackpointSound
	install -Dm755 TrackpointSound "$pkgdir/usr/bin/trackpointsound"
}