mirror of
https://github.com/archlinux/aur.git
synced 2026-03-04 12:55:29 +01:00
uavcan: Initial commit
* Simple and hacky.
This commit is contained in:
commit
2aefde4f0e
2 changed files with 74 additions and 0 deletions
24
.SRCINFO
Normal file
24
.SRCINFO
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
pkgbase = uavcan-git
|
||||
pkgdesc = UAVCAN is a lightweight protocol designed for reliable communication in aerospace and robotic applications via CAN bus (git version)
|
||||
pkgver = 1030.f9b946a
|
||||
pkgrel = 1
|
||||
url = http://uavcan.org
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = git
|
||||
makedepends = make
|
||||
makedepends = cmake
|
||||
optdepends = can-utils
|
||||
provides = uavcan
|
||||
provides = libuavcan
|
||||
conflicts = uavcan
|
||||
conflicts = libuavcan
|
||||
options = !strip
|
||||
source = uavcan::git+https://github.com/UAVCAN/uavcan.git
|
||||
md5sums = SKIP
|
||||
|
||||
pkgname = uavcan-git
|
||||
|
||||
pkgname = libuavcan-git
|
||||
|
||||
50
PKGBUILD
Normal file
50
PKGBUILD
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Maintainer: Kyle Manna <kyle(at)kylemanna(dot)com>
|
||||
|
||||
pkgname=('uavcan-git' 'libuavcan-git')
|
||||
_gitname=uavcan
|
||||
pkgver=1030.f9b946a
|
||||
pkgrel=1
|
||||
pkgdesc="UAVCAN is a lightweight protocol designed for reliable communication in aerospace and robotic applications via CAN bus (git version)"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://uavcan.org"
|
||||
license=('MIT')
|
||||
depends=('')
|
||||
optdepends=('can-utils')
|
||||
makedepends=('git' 'make' 'cmake')
|
||||
options=(!strip)
|
||||
provides=('uavcan' 'libuavcan')
|
||||
conflicts=('uavcan' 'libuavcan')
|
||||
source=("${_gitname}::git+https://github.com/UAVCAN/uavcan.git")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${_gitname}"
|
||||
echo $(git rev-list --count master).$(git rev-parse --short master)
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${_gitname}"
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
make
|
||||
}
|
||||
|
||||
package_uavcan-git() {
|
||||
make -C "$srcdir/${_gitname}/build" DESTDIR=${pkgdir} install
|
||||
|
||||
# FIXME: there has to be a way to do a more selective install
|
||||
rm -rf ${pkgdir}/usr/share \
|
||||
${pkgdir}/usr/src \
|
||||
${pkgdir}/usr/include \
|
||||
${pkgdir}/usr/lib
|
||||
}
|
||||
|
||||
package_libuavcan-git() {
|
||||
make -C "$srcdir/${_gitname}/build" DESTDIR=${pkgdir} install
|
||||
|
||||
# FIXME: there has to be a way to do a more selective install
|
||||
rm -rf ${pkgdir}/usr/bin
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue