summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b56a7ca7b14014b130cde4dae46dbae5baacb539 (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
# Maintainer: Frank Boerman <frank@fboerman.nl>
pkgname=libroboint-python
pkgver=0.5.5
pkgrel=1
pkgdesc="python library for the libroboint package. libroboint is an Open Source version of the fischertechnik ROBO Interface Library for Unix like systems"
arch=('x86_64' 'arm')
url="https://gitlab.com/Humpelstilzchen/libroboint"
license=('LGPLv2.1')
depends=('libroboint' 'python')
makedepends=('cmake')
source=("https://gitlab.com/Humpelstilzchen/libroboint/-/archive/$pkgver/libroboint-$pkgver.tar.gz")
md5sums=("b30d38681449840f1174573bcd310ae1")

prepare() {
    	cd "libroboint-$pkgver"
        find . -type f -exec sed -i 's/python2/python3/g' {} +
}

build() {
	cd "libroboint-$pkgver"
	cmake -DCMAKE_INSTALL_PREFIX=$pkgdir/ -DPYTHON_ROOT=$pkgdir/  .
}

package() {
	cd "libroboint-$pkgver"
	make python
}