summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 562170f207d1db8081a70a5c8839a5f10e49e2c0 (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
pkgname=piscesys-statusbar-git
_pkgname=piscesys-statusbar
pkgver=0.9
pkgrel=1
pkgdesc="Top status bar of piscesys"
arch=('x86_64')
url="https://gitlab.com/piscesys/statusbar"
license=('GPL')
depends=('piscesys-fishui-git' 'libpiscesys-git' 'libdbusmenu-qt5' 'qt5-svg')
makedepends=('extra-cmake-modules' 'qt5-tools' 'git')
provides=("$_pkgname")
conflicts=("$_pkgname" "cutefish-statusbar-git")
source=("git+$url.git")
sha512sums=('SKIP')

pkgver() {
  cd statusbar
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd statusbar

  cmake -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd statusbar
  make DESTDIR="$pkgdir" install
}