summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 367d1aa5698f7bd8d4a5a840efd9a604d39cb7e1 (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
# Maintainer: Samuele Santi <samuele.santi@reinventsoftware.io>

pkgname=canboat-git
pkgver=1.2.1.r43.deaa4c2
pkgrel=1
pkgdesc="NMEA 2000 and NMEA 0183 utilities"
arch=('x86_64')
url="https://github.com/canboat/canboat/"
license=('GPL3')
groups=()
depends=()
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('canboat::git+https://github.com/canboat/canboat.git#branch=master')
noextract=()
md5sums=('SKIP')

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

prepare() {
	cd "$srcdir/${pkgname%-git}"
	# patch -p1 -i "$srcdir/${pkgname%-git}.patch"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

check() {
	cd "$srcdir/${pkgname%-git}"
	# make -k check
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" EXEC_PREFIX="/opt/${pkgname%-git}" install
}