blob: 79f4cbac419f85a7600562a93353a0d555acb553 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Marco Cilloni <marco.cillon@zuru.com>
pkgbase=dicey
pkgname=('dicey' 'python-dicey')
pkgver=0.3.9
pkgrel=2
pkgdesc='Quick and dirty IPC library written in C'
arch=('x86_64' 'i686' 'aarch64')
url=https://github.com/zurutech/dicey
license=('APACHE')
makedepends=(
'git'
'cmake'
'ninja'
'python'
'cython'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=(
git+https://github.com/zurutech/dicey.git#tag=${pkgver}
)
b2sums=('SKIP')
build() {
cmake \
-G Ninja \
-S "${srcdir}/dicey" \
--preset release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGENERATE_EXPORTS=ON
cmake --build "${srcdir}/dicey/build-rel"
# Python
cmake --install "${srcdir}/dicey/build-rel" --prefix "${srcdir}/dicey/bindings/python/dicey/deps"
cd dicey/bindings/python
python3 -m build --wheel --no-isolation
}
package_dicey() {
depends=('gcc-libs' 'libxml2' 'libuv')
provides=('libdicey.so')
cmake --install "${srcdir}/dicey/build-rel" --prefix "${pkgdir}/usr"
install -Dm 644 "${srcdir}/dicey/LICENSE" -t "${pkgdir}"/usr/share/licenses/$pkgname/
}
package_python-dicey() {
pkgdesc='Python bindings for the Dicey IPC lib'
depends=('dicey' 'python-inflection')
python -m installer --destdir="$pkgdir" "${srcdir}/dicey/bindings/python/dist"/*.whl
install -Dm644 "${srcdir}/dicey/LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim: ts=2 sw=2 et:
|