summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82f64b11ab31c1935afaf165822d8426f3f1447a (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
# Contributor: Dave Reisner <d@falconindy.com>

pkgname=expac-git
pkgver=9.2.g6be7fe1
pkgrel=1
pkgdesc="pacman database extraction utility"
arch=('i686' 'x86_64')
url="http://github.com/falconindy/expac"
license=('MIT')
depends=('pacman')
makedepends=('git' 'meson' 'perl')
conflicts=('expac')
provides=('expac')
source=('git://github.com/falconindy/expac.git')
md5sums=('SKIP')

pkgver() {
  cd expac

  git describe | sed 's/-/./g'
}

build() {
  cd expac

  [[ -d build ]] && meson_args+=(--wipe)

  meson build "${meson_args[@]}"
  ninja -C build
}

package() {
  cd expac

  DESTDIR=$pkgdir ninja -C build install
}

# vim: ft=sh syn=sh et