Skip to content

Instantly share code, notes, and snippets.

@aperezdc
Last active February 10, 2019 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aperezdc/ed5ba8c42f96c6887d00b8b864c46c35 to your computer and use it in GitHub Desktop.
Save aperezdc/ed5ba8c42f96c6887d00b8b864c46c35 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for the j4status-git package
# Maintainer: Moritz Maxeiner <moritz@ucworks.org>
pkgname=j4status-git
pkgver=445.8c017e4
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')
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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment