summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8f127252f555c6d55f4048db543133d9339a0b1 (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: Raphael Nestler <raphael.nestler@gmail.com>

_gitname=sphero-linux-api
pkgname=libsphero-git
pkgver=1.0.r10.g5ab1ce8
pkgrel=1
pkgdesc='Simple API for sphero 1 and 2.0 written in C++'
arch=('i686' 'x86_64')
url="https://github.com/slock83/sphero-linux-api"
license=('GPL2')
depends=(bluez-libs)
makedepends=(git)
provides=('libsphero')
conflicts=('libsphero')
source=('git+https://github.com/rnestler/sphero-linux-api.git#branch=fix_makefile')
md5sums=(SKIP)

pkgver() {
  cd $_gitname
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//'
}

build() {
  cd $_gitname
  make
}

package() {
  cd $_gitname
  make DESTDIR=$pkgdir/usr install
}