summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17ca75e20510cd12989de5308b3208cb500f02b2 (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
# Maintainer: Uffe Jakobsen _<_uffe_at_uffe_dot_org_>_
pkgname=propbasic-git
_gitname=PropBASIC
pkgver=1.44.2.r5.g91174c0
pkgrel=1
pkgdesc="A BASIC compiler for the Parallax Propeller microcontroller"
arch=('x86_64' 'i686')
url="https://github.com/parallaxinc/PropBASIC"
license=('LicenseRef-MIT')
groups=()
depends=()
makedepends=('fpc')
provides=("${pkgname}")
conflicts=("${pkgname}-git")
replaces=()
backup=()
options=()
install=
source=("git+https://github.com/parallaxinc/${_gitname}")
sha256sums=('SKIP')


pkgver()
{
  cd "${srcdir}/${_gitname}"
  git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  #printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build()
{
	cd "${srcdir}/${_gitname}"
	make linux
}

package()
{
	cd "${srcdir}/${_gitname}"
  install -Dm 755 "propbasic" "${pkgdir}/usr/bin/propbasic"
  install -Dm 755 "PropBasic" "${pkgdir}/usr/bin/PropBasic"
  install -Dm 755 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  mkdir -p "${pkgdir}/usr/share/${pkgname}/"
  cp -R example "${pkgdir}/usr/share/${pkgname}/"
  mkdir -p "${pkgdir}/usr/share/doc/${pkgname}/"
  cp doc/*.pdf "${pkgdir}/usr/share/doc/${pkgname}/"
}

#
# EOF
#