summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23f4a169b6a9f390ce58f74729471ebca1975bb5 (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
# Maintainer: Antoine Viallon <antoine@lesviallon.fr>
# Contributor: Zan <zan@cock.li>

pkgname=qt-avif-image-plugin-libavif-git
_basename=${pkgname%-git}
_pkgname=qt-avif-image-plugin
pkgver=r68.6920fe4
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/qt-avif-image-plugin'
license=('BSD')
depends=(qt5-base libavif-git)
makedepends=(git extra-cmake-modules)
source=("git+https://github.com/novomesk/qt-avif-image-plugin.git")
sha256sums=('SKIP')

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

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake "../$_pkgname"
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
  install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$_basename/LICENSE"
}