blob: 536dff92cd00ba964030c19a1a1b4fcaeab3f658 (
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
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
_pkgname='sharedaccess'
pkgname=${_pkgname}-git
provides=(${_pkgname})
conflicts=(${_pkgname})
pkgver=1.2.7.r1.g10ce3ae
pkgrel=1
pkgdesc='C++17 library to make sharing a resource with multiple threads easier.'
url="https://gitlab.com/patlefort/${_pkgname}"
license=('GPL-3.0-only')
depends=('boost')
makedepends=('cmake' 'git')
arch=('any')
sha256sums=('SKIP')
source=("git+${url}.git")
pkgver() {
cd "${_pkgname}"
( set -o pipefail
git describe --tags --abbrev=7 --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
build() {
cmake -S ${_pkgname} -B build -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|