summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbtd13372019-04-08 11:11:06 -0300
committerbtd13372019-04-08 11:11:06 -0300
commit88a728806f0a42bab0448e9e9c5c120c23a295c8 (patch)
tree8934923274fafde987a8fff0a47e84c347adac79
parent9dedb8be61509a0cdff32ad79e6c2740591dbefd (diff)
downloadaur-88a728806f0a42bab0448e9e9c5c120c23a295c8.tar.gz
Set meson like default builder system
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD19
2 files changed, 8 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c1b1c77aeff..b9680be43b1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,9 +6,9 @@ pkgbase = translator-git
arch = i686
arch = x86_64
license = GPL3
- makedepends = cmake
makedepends = git
- makedepends = vala
+ makedepends = meson
+ makedepends = ninja
depends = gtk3
depends = vala
depends = granite
diff --git a/PKGBUILD b/PKGBUILD
index 801bf3f15b3..5e6499fc917 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
}