blob: 6a28e333f5d3b76774e91749b2c96f6906d2b134 (
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
33
34
35
36
37
38
|
# Maintainer: Norbert Preining <norbert@preining.info>
pkgname=sasl-xoauth2-git
pkgver=r203.47ff232
pkgrel=2
pkgdesc="SASL plugin that enables client-side use of OAuth 2.0"
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
arch=('x86_64')
url="https://github.com/tarickb/${pkgname%-git}"
license=('Apache')
depends=('libsasl' 'python-msal')
makedepends=('git' 'cmake>=3')
source=(git+${url}.git)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cmake -B build -S "$srcdir/${pkgname%-git}" \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_SYSCONFDIR='/etc' \
-DCMAKE_BUILD_TYPE='None'
cmake --build build
}
check() {
cd build
ctest --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "$srcdir/${pkgname%-git}"/COPYING
install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "$srcdir/${pkgname%-git}"/README.md
}
|