summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbtd13372019-04-08 11:11:06 -0300
committerbtd13372019-04-08 11:11:06 -0300
commit88a728806f0a42bab0448e9e9c5c120c23a295c8 (patch)
tree8934923274fafde987a8fff0a47e84c347adac79 /PKGBUILD
parent9dedb8be61509a0cdff32ad79e6c2740591dbefd (diff)
downloadaur-88a728806f0a42bab0448e9e9c5c120c23a295c8.tar.gz
Set meson like default builder system
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 6 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 801bf3f15b36..5e6499fc917a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ url="https://github.com/${_author}/${_gitname}"
license=('GPL3')
depends=('gtk3' 'vala' 'granite' 'glib2' 'json-glib' 'libgee' 'libsoup')
optdepends=()
-makedepends=('cmake' 'git' 'vala')
+makedepends=('git' 'meson' 'ninja')
provides=("${_auxname}")
conflicts=("${_auxname}")
source=("git+${url}.git")
@@ -27,21 +27,14 @@ pkgver() {
)
}
-prepare() {
- cd "${_gitname}"
- install -d build
-}
-
build() {
- cd "${_gitname}/build"
- cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
- make
+ cd "${_gitname}/"
+ meson . _build --prefix=/usr
+ ninja -C _build
}
package() {
- cd "${_gitname}/build"
- make DESTDIR="${pkgdir}" install
+ cd "${_gitname}/"
+ DESTDIR="${pkgdir}" ninja -C _build install
}