summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3516e8000cda7a1f3abdd887dac5e62e0a5ff9d6 (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
# Maintainer: Fernando Carmona Varo <philip.goto@gmail.com>

pkgname=vengi-voxel-git
pkgver=0.0.28.r291.gfd7b13fb1
pkgrel=1
pkgdesc='voxel art tools - editor, thumbnailer and format converter'
arch=(i686 x86_64 armv7h aarch64)
license=('MIT')
url='https://vengi-voxel.github.io/vengi/'
depends=(sdl2 lua)
makedepends=(git make cmake)
conflicts=()
provides=()
source=("git+https://github.com/vengi-voxel/vengi.git")
sha256sums=(SKIP)

pkgver() {
  cd vengi
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd vengi
  make release
}

package() {
  install -Dm755  -t "$pkgdir/usr/bin/" \
    vengi/build/voxedit/vengi-voxedit \
    vengi/build/voxconvert/vengi-voxconvert \
    vengi/build/voxbrowser/vengi-voxbrowser \
    vengi/build/thumbnailer/vengi-thumbnailer \
    vengi/build/shadertool/vengi-shadertool \
    vengi/build/formatprinter/vengi-formatprinter
}