summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b14b41b72a44ee27e3d03083684519e23bf9ef89 (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
# Maintainer: Frederik Schwan <freswa at archlinux dot org>

pkgname=heif
pkgver=3.6.0
pkgrel=1
pkgdesc='High Efficiency Image File Format'
arch=('x86_64' 'i686')
url='https://nokiatech.github.io/heif/'
license=('custom')
depends=('gcc-libs')
makedepends=('cmake')
source=("https://github.com/nokiatech/heif/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
b2sums=('7e3285c4dc80c5c34ee667b6488529cbf3a0cf4878f8eff656b91bdb96cb05623e9b9df2f015e3ceb77b0b19efd3e7a0d482b04fc5ec0987270f055bccde9885')

build() {
  cd ${pkgname}-${pkgver}/build/
  cmake ../srcs
  make
}

package() {
  cd ${pkgname}-${pkgver}
  install -dm755 "${pkgdir}"/usr/lib/heif/
  install -Dm644 LICENSE.TXT "${pkgdir}"/usr/share/licenses/${pkgname}
  cp -r srcs/api "${pkgdir}"/usr/lib/heif/
  cd build/lib/
  install -Dm644 -t "${pkgdir}"/usr/lib/ ./*
}