blob: e3a39526a704efcc1cc1609d6db71ae946fdef2b (
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
|
# Maintainer: John Sanpe <sanpeqf@gmail.com>
pkgname=xdbd-devel-git
_gitname=xdbd
pkgver=r46.e6e7d25
pkgrel=1
pkgdesc="adbd reimplement and cross platform"
arch=(any)
url="https://github.com/openbfdev/xdbd.git"
branch="develop"
license=('GPL')
makedepends=('git' 'cmake' 'make' '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() {
cd "${srcdir}/${_gitname}"
git submodule update --init --recursive
cmake -B build \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
}
package() {
cd "${srcdir}/${_gitname}"
DESTDIR="$pkgdir" cmake --install build
}
|