summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a886de6fcd474395c5348d806c9f83b16163bc3 (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
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=libvtflib-git
pkgver=r44.eaca22d
pkgrel=1
pkgdesc="Library to handle Valve's Texture Format"
arch=('x86_64')
url="https://github.com/panzi/VTFLib"
license=('GPL')
depends=('libtxc_dxtn')
makedepends=('cmake' 'git' 'extra-cmake-modules')
source=("git+https://github.com/panzi/VTFLib.git")
md5sums=('SKIP')


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

build() {
	cd "$srcdir/VTFLib"

	mkdir build && cd build
	cmake -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX="/usr" \
	../

	make
}

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