summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bb0b06e3f9799f43e4a87dcbdc9a9c41381b704 (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
42
43
44
# Contributor: Dave Reisner <d@falconindy.com>

pkgname=pkgfile-git
pkgver=21.38.gaa06367
pkgrel=1
pkgdesc="a pacman .files metadata explorer"
arch=('x86_64' 'i686')
url="http://github.com/falconindy/pkgfile"
license=('MIT')
depends=('libarchive' 'curl' 'pcre' 'pacman' 'systemd-libs')
makedepends=('git' 'perl' 'meson')
checkdepends=('python' 'gtest' 'gmock')
conflicts=('pkgfile')
provides=('pkgfile')
install=pkgfile.install
source=("git+https://github.com/falconindy/pkgfile")
md5sums=('SKIP')

pkgver() {
  cd pkgfile

  git describe | sed 's/^v//;s/-/./g'
}

build() {
  cd pkgfile

  arch-meson build
  ninja -C build
}

check() {
  cd pkgfile

  meson test -C build
}

package() {
  cd pkgfile

  DESTDIR="$pkgdir" ninja -C build install
}

# vim: ft=sh syn=sh et