summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d9beb7c9b5819a55b2d0715a79781b653213ed0 (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
# Maintainer: seth <getchoo at tuta dot io>
# Contributor: HurricanePootis <hurricanepootis@protonmail.com>

pkgname=lightmaputil-git
pkgver=r65.394c0ea
pkgrel=1
pkgdesc="A simple command line utility to tell you if your lightmaps are too high resolution"
arch=('x86_64')
url="https://github.com/treacherousfiend/LightmapUtil"
license=('CC0-1.0')
makedepends=('git' 'cmake')
depends=('glibc' 'gcc-libs')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/treacherousfiend/LightmapUtil")
sha512sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

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

build() {
	cd "$srcdir"

	cmake -B build \
	-S "${pkgname%-git}" \
	-DCMAKE_BUILD_TYPE=None \
	-DCMAKE_INSTALL_PREFIX=/usr

	cmake --build build
}

package() {
	cd "$srcdir"

	DESTDIR="$pkgdir" cmake --install build
}