summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bda3977c005a9b7aaf54e8666c1eb14d5f3563fe (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
56
57
58
59
60
61
62
63
64
65
66
67
#
# PKGBUILD for naken_asm-git
#
# Contributor: Uffe Jakobsen <microtop@starion.dk>
# Maintainer: Uffe Jakobsen <microtop@starion.dk>
#
pkgname=naken_asm-git
pkgver=r2137.65d74a37
pkgrel=1
epoch=
_pkgname=naken_asm
_pkgver=${pkgver}
pkgdesc="Assembler for MSP430, dsPIC, ARM, MIPS, 65xx, 68000, 8051/8052, Atmel AVR8, and others"
arch=('i686' 'x86_64')
url="http://www.mikekohn.net/micro/naken_asm.php"
license=("GPL3")
groups=()
depends=("readline")
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
noextract=()
#_srcdirname=${_pkgname}-${_pkgver}
#source=("https://github.com/mikekrohn/${_pkgname}/archive/v${_pkgver}.tar.gz")
_srcdirname=${_pkgname}
source=("git+https://github.com/mikeakohn/naken_asm.git")
md5sums=("SKIP")

#
#
#

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


prepare() {
  cd "${srcdir}/${_srcdirname}"
  #patch -p0 < ${startdir}/configure-include-path.patch
  #patch -p0 < ${startdir}/makefile_add_naken_prog.patch
}

build() {
  cd "${srcdir}/${_srcdirname}"
  ./configure --install-prefix=${pkgdir}/usr --include-path=/usr/share/${_pkgname}/includes
  make
}

check() {
  cd "${srcdir}/${_srcdirname}"
}

package() {
  cd "${srcdir}/${_srcdirname}"
  make install
}

# EOF