summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63f870da906971e8fa17bd6e6affa5fd409c2157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Moritz Maxeiner <moritz@ucworks.org>

pkgname=j4status-git
pkgver=458.e86c6d3
pkgrel=1
pkgdesc="A plugin-based status line generator: j4status generates a status line to use with bar programs (like i3bar). It is plugin-based to allow anyone to extend it easily."
arch=('i686' 'x86_64')
url='https://sardemff7.github.io/j4status/'
license=('GPL')
provides=('j4status')
depends=('dbus' 'yajl' 'networkmanager' 'upower' 'lm_sensors' 'systemd'
         'libnl' 'pulseaudio' 'libmpdclient' 'eventd')
makedepends=('git' 'docbook-xsl' 'meson' 'ninja')
options=('!libtool')
source=('j4status::git+https://github.com/sardemff7/j4status'
        'libgwater::git+https://github.com/sardemff7/libgwater'
        'libnkutils::git+https://github.com/sardemff7/libnkutils')
sha256sums=('SKIP' 'SKIP' 'SKIP')

pkgver()
{
  cd j4status
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare()
{
  cd j4status
  git submodule init
  git config submodule.libgwater.url "${srcdir}/libgwater"
  git config submodule.libnkutils.url "${srcdir}/libnkutils"
  git submodule update
}

build()
{
  rm -rf build
  arch-meson j4status build
  ninja -C build
}

package()
{
  DESTDIR="${pkgdir}" ninja -C build install
  install -D -m644 j4status/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}