summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75aa0160a4b596212ff94ee057ec7f4bd4f7801c (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
# Maintainer: Ivaylo Bachvarov <ISBachvarov21@codingburgas.bg>
pkgname=rune-cpp-git
pkgver=0.1
pkgrel=1
pkgdesc="A C++ framework for developing REST APIs with a focus on simplicity and speed."
arch=(x86_64 i686)
url="https://github.com/ISBachvarov21/Rune"
license=('MIT')
makedepends=('git' 'gcc' 'cmake')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')  # Git repositories do not need checksums

pkgver() {
  cd "$srcdir/$pkgname"
  # Dynamically generate the version using commit count and short hash
  echo "0.1.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  mkdir -p build
  cmake -S . -B build
  cmake --build build
}

package() {
  cd "$srcdir/$pkgname"
  cmake --install build --prefix "$pkgdir/usr"
}