summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner2019-06-08 20:30:43 -0400
committerDave Reisner2019-06-08 20:30:43 -0400
commit19739cfe0b0b67f226419217d7ded1df9fde91d1 (patch)
tree58cdb713b819b5f79517c5857edd41ac29771ffd
parente2817c8f62541935209468449a07db10670f9e82 (diff)
downloadaur-19739cfe0b0b67f226419217d7ded1df9fde91d1.tar.gz
Refactor build/install to use meson
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD11
2 files changed, 9 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 94a31bfdb64..56c01efde88 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = expac-git
pkgdesc = pacman database extraction utility
- pkgver = 3.9.g7a73405
+ pkgver = 9.2.g6be7fe1
pkgrel = 1
url = http://github.com/falconindy/expac
arch = i686
arch = x86_64
license = MIT
makedepends = git
+ makedepends = meson
makedepends = perl
depends = pacman
provides = expac
diff --git a/PKGBUILD b/PKGBUILD
index a7c03112e8f..b2e946f8837 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Contributor: Dave Reisner <d@falconindy.com>
pkgname=expac-git
-pkgver=3.9.g7a73405
+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' 'perl')
+makedepends=('git' 'meson' 'perl')
conflicts=('expac')
provides=('expac')
source=('git://github.com/falconindy/expac.git')
@@ -23,13 +23,16 @@ pkgver() {
build() {
cd expac
- make
+ [[ -d build ]] && meson_args+=(--wipe)
+
+ meson build "${meson_args[@]}"
+ ninja -C build
}
package() {
cd expac
- make PREFIX=/usr DESTDIR="$pkgdir" install
+ DESTDIR=$pkgdir ninja -C build
}
# vim: ft=sh syn=sh et