summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin2018-06-24 13:05:59 +0200
committerMaxime Gauduin2018-06-24 13:05:59 +0200
commit304096f803fcf17d7629a1a3cded1471e1b803e5 (patch)
treec824680ef25234043cf1fbf98357fa2a04267113
parent993d1ca8a798a1de1a42e7c5de38571d6c436add (diff)
downloadaur-304096f803fcf17d7629a1a3cded1471e1b803e5.tar.gz
Switch to meson
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD24
2 files changed, 23 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 22c11aa4296..011e2e12219 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,18 @@
# Generated by mksrcinfo v8
-# Tue Jun 19 13:15:22 UTC 2018
+# Sun May 7 13:56:54 UTC 2017
pkgbase = switchboard-plug-user-accounts-git
pkgdesc = Switchboard User Accounts Plug
pkgver = r349.051bb8e
pkgrel = 1
url = https://github.com/elementary/switchboard-plug-useraccounts
+ arch = i686
arch = x86_64
groups = pantheon-unstable
license = GPL3
+ makedepends = cmake
makedepends = git
makedepends = gobject-introspection
makedepends = granite-git
- makedepends = meson
makedepends = switchboard-git
makedepends = vala
depends = accountsservice
diff --git a/PKGBUILD b/PKGBUILD
index e1c8c3239f6..f1b8f6995fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ groups=('pantheon-unstable')
depends=('accountsservice' 'cairo' 'gdk-pixbuf2' 'glib2' 'glibc'
'gnome-desktop' 'gtk3' 'libgee' 'libpwquality' 'polkit'
'libgranite.so' 'libswitchboard-2.0.so')
-makedepends=('git' 'gobject-introspection' 'granite-git' 'meson'
+makedepends=('cmake' 'git' 'gobject-introspection' 'granite-git'
'switchboard-git' 'vala')
source=("switchboard-plug-user-accounts::git+https://github.com/elementary/switchboard-plug-useraccounts.git")
sha256sums=('SKIP')
@@ -22,13 +22,29 @@ pkgver() {
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
+prepare() {
+ cd switchboard-plug-user-accounts
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build
+}
+
build() {
- arch-meson switchboard-plug-user-accounts build
- ninja -C build
+ cd switchboard-plug-user-accounts/build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE='Release' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DCMAKE_INSTALL_LIBDIR='/usr/lib'
+ make
}
package() {
- DESTDIR="${pkgdir}" ninja -C build install
+ cd switchboard-plug-user-accounts/build
+
+ make DESTDIR="${pkgdir}" install
}
# vim: ts=2 sw=2 et: