blob: 4d4a5c4151ad227e57c280559fd95e2d291891e2 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Andrei G. Florea <andrei91ro at gmail dot com>
pkgname=kilombo-git # '-bzr', '-git', '-hg' or '-svn'
pkgver="v0.1.r177.83c55c7"
pkgrel=1
pkgdesc="Kilobot simulator in C"
arch=('i686' 'x86_64')
url="https://github.com/JIC-CSB/kilombo"
license=('MIT')
groups=()
depends=()
makedepends=('git' 'cmake' 'sdl' 'jansson' 'check') # 'bzr', 'git', 'mercurial' or 'subversion'
optdepends=('avr-gcc: c compiler for the AVR microcontroller, to compile for the kilobot')
#install=
source=('git+https://github.com/JIC-CSB/kilombo.git')
md5sums=('SKIP')
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.
pkgver() {
cd "$srcdir/${pkgname%-git}"
# Git, tags available
printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
#prepare() {
#cd "$srcdir/${pkgname%-VCS}"
#patch -p1 -i "$srcdir/${pkgname%-VCS}.patch"
#}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
#check() {
#cd "$srcdir/${pkgname%-git}"
#make -k check
#}
package() {
cd "$srcdir/${pkgname%-git}/build"
make DESTDIR="$pkgdir/" install
# add license
mkdir -p $pkgdir/usr/share/licenses/$pkgname
cp "$srcdir/${pkgname%-git}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}
|