summaryrefslogtreecommitdiff
path: root/community/simavr
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/simavr
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/simavr')
-rw-r--r--community/simavr/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/simavr/PKGBUILD b/community/simavr/PKGBUILD
new file mode 100644
index 000000000..aa2e8370f
--- /dev/null
+++ b/community/simavr/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: schuay <jakob.gruber@gmail.com>
+
+pkgname=simavr
+pkgver=1.0
+pkgrel=2
+pkgdesc='A lean, mean and hackable AVR simulator'
+arch=('i686' 'x86_64')
+url="https://github.com/buserror-uk/simavr"
+license=('GPL3')
+depends=('elfutils')
+makedepends=('avr-libc')
+source=("https://github.com/downloads/buserror-uk/simavr/$pkgname-$pkgver.tar.bz2")
+options=(!strip)
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # The original Makefile depends on git, hardcode the version until it's fixed upstream.
+ sed -i "s/^\(SIMAVR_VERSION\).*/\1 = ${pkgver}/" simavr/Makefile
+
+ make AVR_ROOT=/usr/avr SIMAVR_VERSION=1.0 \
+ CFLAGS="-Wall -Wextra -fPIC -std=gnu99 -Wno-sign-compare -Wno-unused-parameter" \
+ build-simavr
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make PREFIX="/usr" DESTDIR="$pkgdir/usr" install
+}
+
+md5sums=('82c9704a4e8569548f01931e32ebfe0c')