summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbtd13372019-04-17 15:45:11 -0300
committerbtd13372019-04-17 15:45:11 -0300
commite4ef58dc5ebc45372c5f3decfcb9db4d34f88bbc (patch)
treee54af5cad7caea2f3f950572f5d0c1f60136efae
parent78e97937a82df96e84e5597c4269217431dac93e (diff)
downloadaur-e4ef58dc5ebc45372c5f3decfcb9db4d34f88bbc.tar.gz
Set build system to meson
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD24
2 files changed, 11 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4b9122ac8ed..e334ed64427 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = formatter-git
pkgdesc = A simple device formatter built for Pantheon Shell
- pkgver = latest
+ pkgver = r62.a362929
pkgrel = 1
url = https://github.com/djaler/formatter
arch = i686
arch = x86_64
license = GPL3
- makedepends = cmake
- makedepends = cmake-modules-elementary-git
makedepends = git
+ makedepends = meson
+ makedepends = ninja
makedepends = vala
depends = gtk3
depends = granite
diff --git a/PKGBUILD b/PKGBUILD
index 373c76608e7..7ef3b68085c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
# Maintainer: Helder Bertoldo <helder.bertoldo@gmail.com>
-# Contributor:
+# Contributor:
_gitname=formatter
_author=djaler
pkgname=("${_gitname}-git")
-pkgver=latest
+pkgver=r62.a362929
pkgrel=1
pkgdesc="A simple device formatter built for Pantheon Shell"
arch=('i686' 'x86_64')
@@ -12,7 +12,7 @@ url="https://github.com/${_author}/${_gitname}"
license=('GPL3')
depends=('gtk3' 'granite' 'debhelper')
optdepends=('')
-makedepends=('cmake' 'cmake-modules-elementary-git' 'git' 'vala')
+makedepends=('git' 'meson' 'ninja' 'vala')
provides=("${_gitname}")
conflicts=("${_gitname}")
source=("git+${url}.git")
@@ -26,21 +26,13 @@ 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
}
-