summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0512b37a7949a05d92a6f9a97653168c84c751df (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=basis-universal-git
pkgver=1.08+19.gbbbce07039
pkgrel=1
pkgdesc="Basis Universal GPU Texture Codec"
arch=('x86_64')
url="https://github.com/BinomialLLC/basis_universal"
license=('Apache')
makedepends=('cmake' 'ninja')
source=("git+$url")
sha256sums=('SKIP')
provides=(basis-universal basisu)
conflicts=(basis-universal)

pkgver() {
  cd basis_universal
  git describe --long --abbrev=10 --tags | sed 's/-/+/; s/-/./'
}

prepare() {
  cd basis_universal
  cmake \
    -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    .
}

build() {
  cd basis_universal
  ninja
}

package() {
  cd basis_universal
  DESTDIR="$pkgdir" ninja install
}