summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2fc0c4c3a3acef0b04f78890a4ef2da4cdc15f1 (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
# Maintainer: Frank Boerman <frank@fboerman.nl>
pkgname=libroboint
pkgver=0.5.5
pkgrel=2
pkgdesc="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=('libusb-compat')
optdepends=('libroboint-python: python bindings')
makedepends=('cmake' 'gcc')
source=("https://gitlab.com/Humpelstilzchen/libroboint/-/archive/$pkgver/$pkgname-$pkgver.tar.gz"
        "install-location.patch")
md5sums=("b30d38681449840f1174573bcd310ae1" "925ec938a574e6e2f9fb7b5a894a35c9")

prepare() {
    	cd "$pkgname-$pkgver"
        patch -p1 -i  "$srcdir/install-location.patch"
}

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

package() {
	cd "$pkgname-$pkgver"
	make install
        make udev
}