blob: 9968021defe8ee255db97e218615863030ea570d (
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
|
# Maintainer: John Sanpe <sanpeqf@gmail.com>
pkgname=bfdev-devel-git
_gitname=bfdev
pkgver=r1047.e669ad6
pkgrel=1.1
pkgdesc="An open source development library"
arch=(any)
url="https://github.com/openbfdev/bfdev.git"
branch="devel"
license=('GPL')
makedepends=('git' 'cmake' 'gcc' 'fakeroot')
source=("${_gitname}::git+${url}#branch=${branch}")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cmake -B build -S ${_gitname%-git} \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D BFDEV_EXAMPLES=ON \
-D BFDEV_TESTSUITE=ON
cmake --build build -j$(nproc)
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|