diff options
author | Maxime Gauduin | 2018-06-24 13:05:59 +0200 |
---|---|---|
committer | Maxime Gauduin | 2018-06-24 13:05:59 +0200 |
commit | 304096f803fcf17d7629a1a3cded1471e1b803e5 (patch) | |
tree | c824680ef25234043cf1fbf98357fa2a04267113 | |
parent | 993d1ca8a798a1de1a42e7c5de38571d6c436add (diff) | |
download | aur-304096f803fcf17d7629a1a3cded1471e1b803e5.tar.gz |
Switch to meson
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 23 insertions, 6 deletions
@@ -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 @@ -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: |