blob: 905449c53eec2354a787e34b0c12762415ab4057 (
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
39
40
41
42
43
|
# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
_pkgname=libargparse
pkgname=$_pkgname-git
pkgver=r69.ee74d1b
pkgrel=1
pkgdesc="A C++ command-line parsing library"
arch=(x86_64)
url="https://github.com/kmurray/libargparse"
license=('MIT')
makedepends=('git' 'cmake')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
"git+$url"
)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_pkgname"
}
build() {
cmake -B build -S "$_pkgname" \
-DCMAKE_INSTALL_PREFIX=/usr
make -C build
}
check() {
make -C build -k test
}
package() {
make -C build DESTDIR="$pkgdir/" install
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$_pkgname/LICENSE.md"
}
|