blob: 65860f125279fb62a8ad75ddca1c8e1447995be0 (
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
|
# Maintainer: Michael Kuc <michaelkuc6 at gmail dot com>
_pkgname=nngpp
pkgname=${_pkgname}-git
pkgver=1.3.00cc5d264
pkgrel=2
pkgdesc="C++ wrapper around the nanomsg NNG API "
arch=('x86_64')
url="https://github.com/cwzx/nngpp"
license=('MIT')
depends=('nng'
'mbedtls')
makedepends=('catch2')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
epoch=1
source=("${_pkgname}::git+https://github.com/cwzx/nngpp.git")
pkgver() {
cd "${_pkgname}"
git describe --long --tags | tr -d 'nng\-v' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
check() {
cd "${_pkgname}"
make test
}
package() {
cd "${_pkgname}"
install -dm755 "${pkgdir}/usr/include"
cp -r include "${pkgdir}/usr"
find "${pkgdir}/usr/include/${_pkgname}" \( -type d -exec chmod 755 {} \; \) -o \( -type f -exec chmod 644 {} \; \)
install -m644 -D "license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -m644 -D "readme.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
sha256sums=('SKIP')
|