blob: 5de36aceb3756a4fa2453510b3eaa06eabcc1684 (
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
|
# Maintainer: Aiyion <aur@aiyionpri.me>
pkgname=python-libcharon
pkgver=4.0.0
pkgrel=2
pkgdesc="File metadata and streaming library"
arch=('any')
url="https://github.com/Ultimaker/libCharon"
license=('LGPL3')
depends=('python')
# the python typing extensions are not necessary anymore, unless you are using an ancient version of python and can not move away from that
optdepends=('python-typing-extensions')
makedepends=('python-setuptools' 'cmake')
checkdepends=('python-pytest' 'python-coverage')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/libCharon/archive/${pkgver}.tar.gz")
sha512sums=('0fcf40af4cb2fee85baa2e4687a0b6da45ede4237e73f65f22ff8fd65b7517d89ec52fb7343a052b1da9d4abb15b952ec6c455108d9d4de9b6a3c5e54c344d51')
build() {
cd libCharon-$pkgver
mkdir -p build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_PREFIX_PATH=/usr \
..
make
}
check() {
cd libCharon-${pkgver}/build
make test
}
package() {
cd libCharon-${pkgver}/build
make DESTDIR="$pkgdir/" install
}
|