summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a51b18f957bbef0f06708b90da3edc3532dfc514 (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
pkgname=tuxpit-kneeboard
pkgver=1.0.0
pkgrel=1
pkgdesc="Kneeboard overlay for Digital Combat Simulator made with golang and qt6."
arch=('x86_64')
url="https://github.com/Kam1ni/tuxpit-kneeboard"
license=('MIT')
dependes=('qt6-base' 'ttf-nerd-fonts-symbols')
makedepends=('go' 'git' 'pkgconf' 'qt6-base')
source=("git+https://github.com/Kam1ni/tuxpit-kneeboard.git#tag=v$pkgver")
sha256sums=('SKIP')
optdepends=('ttf-dejavu: fallback font if no system font available')

build() {
	cd "$srcdir/tuxpit-kneeboard/src"
	go build -v -ldflags "-s -w" -o "$pkgname"
}

package() {
	cd "$srcdir/tuxpit-kneeboard"

	install -Dm755 "src/$pkgname" "$pkgdir/usr/bin/$pkgname"

	install -Dm644 "assets/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"

	install -Dm644 "assets/icon.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
}