summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f1498835663dd6ef0e165c6bb06ddfaa628bd2b (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
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgname=hvif-git
pkgver=0.1.0.r0.g2193c3e
pkgrel=1
pkgdesc='HVIF implementation for Linux'
arch=('x86_64')
url='https://linkmauve.fr/dev/hvif/'
license=('MPL2')
depends=('gdk-pixbuf2')
makedepends=('git' 'cargo')
provides=('hvif')
conflicts=('hvif')
source=('git+https://git.linkmauve.fr/hvif.git')
sha256sums=('SKIP')

pkgver() {
  cd hvif
  git describe --tags --long | sed 's/^v//; s/_/./g; s/-/.r/; s/-/./'
}

build() {
  cd hvif
  arch-meson build
  ninja -C build
}

check() {
  cd hvif
  cargo test --release \
    --target-dir build
}

package() {
  cd hvif
  DESTDIR="$pkgdir" ninja -C build install
  install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

# vim:set ts=2 sw=2 et: