summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7761df67f6103bab6e7c3738abd2595d4c59fc2e (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: Aaron Barany <akb825@gmail.com>

pkgname=('cuttlefish-tool')
pkgver=2.0.3
pkgrel=1
pkgdesc='Texture converter tool and library'
arch=('i686' 'x86_64')
url="https://github.com/akb825/Cuttlefish"
license=('Apache')
makedepends=('cmake' 'git')
depends=('freeimage')
optdepends=('PVRTexTool: PVRTC support. Download from https://community.imgtec.com/developers/powervr/tools/pvrtextool/')
source=()
sha256sums=()

build() {
	mkdir Cuttlefish && cd Cuttlefish
	git clone https://github.com/akb825/Cuttlefish.git .
	git checkout v${pkgver}
	git submodule init
	git submodule update
	mkdir build && cd build
	cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
		-DCUTTLEFISH_BUILD_DOCS=OFF -DCUTTLEFISH_BUILD_TESTS=OFF
	make
}

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