summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f9530194242eb71b89fd78b419aa10d1edd0467 (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: Vahlblue <c@vahl.blue>
pkgname=('fast-wfc-git')
pkgver=r90.854230a
pkgrel=1
pkgdesc='An implementation of Wave Function Collapse in C++'
arch=('any')
url='https://github.com/math-fehr/fast-wfc'
license=('MIT')
makedepends=('gcc' 'make' 'cmake')
provides=('fast-wfc')
source=("git+https://github.com/math-fehr/fast-wfc")
sha512sums=('SKIP')

prepare() {
  cd fast-wfc
  cmake .
}

pkgver() {
  cd fast-wfc
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd fast-wfc
  make
}

package() {
  cd fast-wfc

  make DESTDIR=${pkgdir} install

  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}