summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 172f4b624864baa876d220e90449e46d9c56f2ba (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
# Maintainer: Uffe Jakobsen _<_uffe_at_uffe_dot_org_>_
pkgname=propasm-git
_pkgname=propasm
pkgver=r20.ebf0098
pkgrel=1
pkgdesc="Tool to convert Parallax Propeller Spin code to PASM, C++ or C"
arch=("any")
url="https://github.com/cbiffle/propasm"
license=('unknown')
groups=()
depends=("java-runtime")
makedepends=("java-environment" "apache-ant")
provides=("${pkgname}")
conflicts=("${pkgname}-git")
replaces=()
backup=()
options=()
install=
source=("git+https://github.com/cbiffle/propasm.git")
md5sums=("SKIP")


pkgver()
{
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build()
{
  cd "${srcdir}/${_pkgname}"
  ant
}

package()
{
  cd "${srcdir}/${_pkgname}"
  install -Dm 755 "propasm.jar" "${pkgdir}/usr/share/propasm/propasm.jar"
}

#
# EOF
#