summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ea9d9aea7ad8466089a192430c44818b9a56d36 (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: Christopher Michael Mescher $(echo \<pascha-mescher+faith\>|sed s/\+/./g\;s/\-/@/)

pkgname=pascha-cli-git
pkgver() {
  cd "$srcdir/${pkgname%-git}"
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgver=2.0.r1.g1f7cf68
pkgrel=1

pkgdesc="A simple CLI program to calculate and display the date of Pascha (Easter)"
arch=('any')
url="https://gitlab.com/cmmescher/pascha-cli.git"
license=('GPL3')
depends=()
makedepends=('git' 'cmake')
provides=("${pkgname%-cli-git}")
conflicts=("${pkgname%-cli-git}")
source=("git+$url")
md5sums=('SKIP')

build() {
    cmake -B build -S "$srcdir/${pkgname%-git}" \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    cmake --build build
}

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