summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f53a8a21620b2b30fad313c423dcf7dfa8fbc1ee (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
# Maintainer: Aidan Neal <decator(dot)c(at)proton(dot)me>
pkgname="qinfo-git"
_pkgname="qinfo"
pkgver=r97.rc3c6e44.
pkgrel=2
pkgdesc="A system info program. Fetches system info and displays it."
arch=("x86_64")
url="https://github.com/El-Wumbus/qinfo"
license=("LGPL3")
provides=("qinfo")
makedepends=("meson" "ninja")
depends=()
optdepends=("snapd: List number of snap packages"
            "flatpak: List number of flatpak packages")
source=($_pkgname::"git+https://github.com/El-Wumbus/qinfo.git")
sha256sums=("SKIP")

pkgver() {
  cd "$_pkgname"
  printf "r%s.$s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  mkdir -p build
  meson setup build
  meson compile -C build
}
package() {
  cd "$_pkgname"
  install build/qinfo -Dm755 ${pkgdir}/usr/bin/qinfo
}