summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c392552a8c55ceffee808e46d59f265151d7e1ab (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
# Maintainer: b1u3rchie <b1u3rchie@larpdhq.org>
pkgname=plusplusfetch-git
pkgver=r56.1d22e0e
pkgrel=1
pkgdesc="Simple fetch tool written in C++"
arch=("x86_64")
url="https://codeberg.org/melvi/plusPlusFetch.git"
license=('MIT')
conflicts=("plusplusfetch")
depends=('glibc' 'gcc-libs')
makedepends=('git' 'cmake')
sha256sums=('SKIP') 

source=("plusplusfetch::git+https://codeberg.org/melvi/plusPlusFetch.git")

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

build() {
  cmake -B build -S "plusplusfetch" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}