blob: d814181f8e47eab130b11991cefa9dc4512fd625 (
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
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=qvtfpp-git
pkgver=1.0.0.r0.g008c84b
pkgrel=1
pkgdesc="A Qt6 QImageIO plugin to load VTF textures."
arch=('x86_64')
url="https://github.com/craftablescience/qvtfpp"
license=('LGPL-2.1-only')
depends=('qt6-base' 'glibc' 'gcc-libs')
makedepends=('cmake' 'git' 'ninja' 'extra-cmake-modules' 'vulkan-headers')
provides=("${pkgname::-4}" "${pkgname::-6}")
conflicts=("${pkgname::-4}" "${pkgname::-6}")
source=("git+$url.git"
"git+${url::-6}sourcepp.git"
"git+${url::-6}cmake-helpers.git")
sha256sums=('SKIP'
'SKIP'
'SKIP')
pkgver(){
cd "$srcdir/${pkgname::-4}"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g'
}
prepare() {
cd "$srcdir/${pkgname::-4}"
git submodule init
git config submodule.ext/sourcepp.url "$srcdir/sourcepp"
git config submodule.cmake/helpers.url "$srcdir/cmake-helpers"
git -c protocol.file.allow=always submodule update
}
build() {
cd "$srcdir"
cmake -B build -S ${pkgname::-4} \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_C_FLAGS="$CFLAGS -DNDEBUG" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
-DCPACK_GENERATOR=RPM \
-GNinja
cmake --build build
}
package() {
cd "$srcdir"
DESTDIR="$pkgdir" cmake --install build
}
|