summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b1305ff3883b108543953e772dceadad686327f (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
# Maintainer: Lucas Schwiderski <lucas@lschwiderski.de>
pkgname=kdegraphics-thumbnailer-dds-git
pkgver=r35.3284d66
pkgrel=1
epoch=
pkgdesc="DDS texture thumbnailer for KDE"
arch=("x86_64")
url="https://github.com/xmaciek/kdegraphics-thumbnailer-dds"
license=('MIT')
groups=()
depends=('qt6-base' 'kio' 'kcoreaddons')
makedepends=('git' 'cmake' 'extra-cmake-modules')
provides=('kdegraphics-thumbnailer-dds')
conflicts=('kdegraphics-thumbnailer-dds')
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname%-git}::git+${url}.git")
noextract=()
sha256sums=('SKIP')

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

build() {
    cmake \
        -S "${pkgname%-git}" \
        -B "${pkgname%-git}/build" \
        -G 'Unix Makefiles' \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    cmake --build "${pkgname%-git}/build"
}

package() {
    DESTDIR="$pkgdir" cmake --install "${pkgname%-git}/build"
}