summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 085710dad3a05122da11919a9ef21e50492462b8 (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
# Maintainer: Marc ROGER de CAMPAGNOLLE <fora at mrdc dot fr>
# Contributor: zan <zan at 420blaze dot it>

pkgname=qt-avif-image-plugin-git
_pkgname=${pkgname%-git}
pkgver=r83.77c1a38
pkgrel=1
pkgdesc='Qt plug-in to allow Qt and KDE based applications to read/write AVIF images'
arch=('x86_64')
url="https://github.com/novomesk/$_pkgname"
license=('BSD')
depends=('qt5-base' 'libavif')
makedepends=('git' 'make')
source=("git+$url.git")
sha256sums=('SKIP')

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

build() {
  cd "$_pkgname"
  ./build_libqavif_dynamic.sh
}

package() {
  cd "$_pkgname"
  install -Dm755 "$srcdir/$_pkgname/plugins/imageformats/libqavif.so" "$pkgdir/usr/lib/qt/plugins/imageformats/libqavif.so"
  install -Dm755 -t "$pkgdir/usr/share/kservices5/qimageioplugins/" $srcdir/$_pkgname/share/kservices5/qimageioplugins/*.desktop
  install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}