summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 9 insertions, 26 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5f9e2f0c755..139a35d393f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,43 +1,26 @@
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
pkgname=wingpanel-indicator-power
-pkgver=2.1.1
+pkgver=2.1.3
pkgrel=1
pkgdesc='Wingpanel Power Indicator'
-arch=('i686' 'x86_64')
+arch=('x86_64')
url='https://github.com/elementary/wingpanel-indicator-power'
license=('GPL3')
groups=('pantheon')
-depends=('bamf' 'glib2' 'glibc' 'gtk3' 'libgee' 'libgtop'
+depends=('bamf' 'glib2' 'gtk3' 'libgee' 'libgtop'
'libgranite.so' 'libudev.so' 'libwingpanel-2.0.so')
-makedepends=('cmake' 'intltool' 'vala' 'wingpanel')
-source=("wingpanel-indicator-power-${pkgver}.tar.gz::https://github.com/elementary/wingpanel-indicator-power/archive/${pkgver}.tar.gz")
-sha256sums=('6557f16bad605f57b930febfec2f60e6c6bc24358712028fba20f67349974e5d')
-
-prepare() {
- cd wingpanel-indicator-power-${pkgver}
-
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
-}
+makedepends=('git' 'intltool' 'meson' 'vala' 'wingpanel')
+source=("git+https://github.com/elementary/wingpanel-indicator-power.git#tag=${pkgver}")
+sha256sums=('SKIP')
build() {
- cd wingpanel-indicator-power-${pkgver}/build
-
- cmake .. \
- -DCMAKE_BUILD_TYPE='Release' \
- -DCMAKE_INSTALL_PREFIX='/usr' \
- -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
- -DGSETTINGS_COMPILE='OFF'
- make
+ arch-meson wingpanel-indicator-power build
+ ninja -C build
}
package() {
- cd wingpanel-indicator-power-${pkgver}/build
-
- make DESTDIR="${pkgdir}" install
+ DESTDIR="${pkgdir}" ninja -C build install
}
# vim: ts=2 sw=2 et: