summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf87e0adf602ccb52dbbb86fd3abd8d169b7529d (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
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
# Ex-Maintainer: Nikita Puzyryov <PuzyryovN@gmail.com>
#
# PRs are welcome here: https://github.com/yurikoles-aur/zchunk-git
#

pkgname=zchunk-git
pkgver=1.3.0.r0.g1d8f144
pkgrel=1
pkgdesc='A file format designed for highly efficient deltas while maintaining good compression'
pkgdesc+=' (git version)'
arch=(x86_64)
url=https://github.com/zchunk/zchunk
license=(BSD)
depends=(libcurl.so zstd)
makedepends=(meson)
makedepends+=(git)
provides=(libzck.so)
provides+=(zchunk="${pkgver}")
conflicts=(zchunk)
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags --abbrev=7 | sed 's/-/.r/;s/-/./'
}

build() {
  arch-meson "${pkgname}" build
  meson compile -C build
}

check() {
  meson test -C build
}

package() {
  DESTDIR="${pkgdir}" meson install -C build
  install -Dm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}