summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29a1b3e7b9f86d8c2700234798e404b2c3e3f98a (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
# Maintainer: Will Marshall <wcm64@case.edu> 
# Past Maintainer: Matthias Riegler <riegler.matthias2@gmail.com>
pkgname=openspin-git
pkgver=VERSION
pkgrel=1
pkgdesc="Open Source SPIN interpreter for the ParallaxⓇ Propeller. Git Version"
arch=('x86_64' 'i686')
url="https://github.com/parallaxinc/OpenSpin"
license=('unknown')
groups=()
depends=()
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('openspin::git+https://github.com/parallaxinc/OpenSpin')
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING git SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

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

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

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

package() {
	cd "$srcdir/${pkgname%-git}"
    install -Dm 755 build/openspin "${pkgdir}/usr/bin/openspin" 
}