summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5e7e3f5459a87d8a2e02f1e2dede5004086c938 (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
# Maintainer: Vaporeon <vaporeon@vaporeon.io>

pkgname=invader-git
pkgver=0.16.0.r775.4680436
pkgrel=1
pkgdesc="Open source modding toolkit for Halo Custom Edition"
depends=('libtiff' 'libarchive' 'freetype2')
makedepends=('cmake' 'git' 'python')
arch=('i686' 'x86_64')
url="https://invader.opencarnage.net"
license=('GPL')
source=('git+https://github.com/Kavawuvi/Invader.git')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir"/Invader
  printf "%s.r%s.%s" "$(git describe --abbrev=0 --tags)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir"
  mkdir -p build
}

build() {
  cd "$srcdir"/build
  cmake ../Invader
  make
}

package() {
  cd "$srcdir"/build
  for i in invader-{archive,bitmap,build,compress,dependency,font,indexer,info,resource,string}; do
     install -Dm755 $i "$pkgdir"/usr/bin/$i
  done
}