summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8535920b50ac08f4c4b2daee98f4c112c2e98170 (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
# Maintainer: seth <g3tchoo at proton dot me>

pkgname=lightmaputil-git
pkgver=r44.6b38f5d
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=('custom:none')
makedepends=('git' 'cmake') # 'bzr', 'git', 'mercurial' or 'subversion'
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/${pkgname%-git}"
  mkdir -p build
  cd build
  cmake -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    ..
  make
}

package() {
	cd "$srcdir/${pkgname%-git}/build"
  make install DESTDIR="${pkgdir}"
}