blob: 9f711d44be0526b0d18bbda6393f6eae0e8b92bc (
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
|
# Maintainer: Juanjo Gutierrez <juanjo at gutierrezdequevedo dot com>
# based on picsim PKGBUILD by:
# Maintainer : yjun <jerrysteve1101 at gmail dot com>
# Contributor : Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=picsim-git
_basename=picsim
pkgver=r215.d4aa357
pkgrel=1
pkgdesc="Emulates some PIC microcontroller and periferics such as USART and timers, the simulator architecture permit easy implementation of external elements in C"
arch=('x86_64')
url='https://github.com/lcgamboa/picsim'
license=('GPL2')
options=('staticlibs')
depends=('glibc')
makedepends=('gcc'
'doxygen'
'git')
source=("git+https://github.com/lcgamboa/picsim/")
sha256sums=('SKIP')
provides=('picsim')
conflicts=('picsim')
pkgver() {
cd "${_basename}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_basename}"
make
}
package() {
cd "${_basename}"
install -dm755 "$pkgdir/usr/lib"
# install
make install prefix="$pkgdir/usr"
# bin
install -Dm755 src/${_basename} -t "${pkgdir}/usr/bin"
# doc
install -d "${pkgdir}/usr/share/doc/${_basename}"
cp -avR docs examples \
"${pkgdir}/usr/share/doc/${_basename}"
}
|