blob: 20caceaf646b1a39381d411421022d64942de7f1 (
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: Butui Hu <hot123tea123@gmail.com>
_pkgname=KWIML
pkgname=kwiml-git
pkgver=r60.500bc25
pkgrel=2
pkgdesc='The Kitware Information Macro Library'
arch=('any')
url='https://gitlab.kitware.com/utils/kwiml'
license=('BSD-3-Clause')
makedepends=(
cmake
git
)
provides=(kwiml)
conflicts=(kwiml)
source=("${_pkgname}::git+https://gitlab.kitware.com/utils/kwiml.git")
sha512sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cmake -B build -S ${srcdir}/${_pkgname} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make -C build
}
package() {
make -C build DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/${_pkgname}/Copyright.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|