summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31b9b734711327f71d7ce416710cc1047597255f (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
# Maintainer: Daniel Kirchner <daniel at ekpyron dot org>
pkgname=ktxutils-git
_pkgbase=ktxutils
pkgver=r20.6f538eb
pkgrel=1
pkgdesc="Utilities for the KTX texture format"
license=('MIT')
arch=('any')
url="http://github.com/ekpyron/${_pkgbase}/"
depends=('glfw' 'imagemagick' 'glew')
makedepends=('cmake')
source=("git+https://github.com/ekpyron/${_pkgbase}")
md5sums=('SKIP')

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

build() {
  cd "$srcdir"/${_pkgbase}
  rm -rf build
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
}

package() {
  cd "${srcdir}/${_pkgbase}/build"
  make install DESTDIR="${pkgdir}"
}