summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpappy2017-03-14 16:59:26 +0200
committerpappy2018-06-18 13:10:24 +0300
commitb3fd9bca34b8b68da1c1e4ed79ab8d7081deef20 (patch)
treebf1d08c231813176b7b81fc7936972d6c7222737
downloadaur-b3fd9bca34b8b68da1c1e4ed79ab8d7081deef20.tar.gz
initial commit
-rw-r--r--.SRCINFO28
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD39
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3bdc4617466
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = simavr
+ pkgdesc = A lean, mean and hackable AVR simulator
+ pkgver = 1.5
+ pkgrel = 1
+ url = https://github.com/buserror/simavr
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ license = GPL3
+ makedepends = avr-libc
+ makedepends = git
+ makedepends = freeglut
+ makedepends = glu
+ depends = elfutils
+ provides = simavr
+ conflicts = simavr
+ replaces = simavr
+ options = !strip
+ source = simavr::git+https://github.com/buserror/simavr.git#tag=v1.5
+ md5sums = SKIP
+
+pkgname = simavr-asc
+
+pkgname = simavr-asc-examples
+ depends = simavr-asc=1.5
+ depends = freeglut
+ depends = glu
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..425953b16b4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+simavr
+*.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1a5992fe3d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: PAPPY <pappy _AT_ a s c e l i o n _DOT_ com>
+
+pkgbase=simavr
+pkgname=(simavr-asc simavr-asc-examples)
+pkgver=1.5
+pkgrel=1
+pkgdesc='A lean, mean and hackable AVR simulator'
+arch=('i686' 'x86_64' 'armv7h')
+url="https://github.com/buserror/simavr"
+license=('GPL3')
+depends=('elfutils')
+makedepends=('avr-libc' 'git' 'freeglut' 'glu')
+source=("${pkgbase}::git+https://github.com/buserror/simavr.git#tag=v${pkgver}")
+options=(!strip)
+md5sums=('SKIP')
+provides=(simavr)
+conflicts=(simavr)
+replaces=(simavr)
+
+build() {
+ cd "$srcdir/$pkgbase"
+
+ make AVR_ROOT=/usr/avr RELEASE=1 \
+ CFLAGS="-Wall -Wextra -fPIC -O2 -std=gnu99 -Wno-sign-compare -Wno-unused-parameter" \
+ build-simavr build-examples
+}
+
+package_simavr-asc() {
+ cd "$srcdir/$pkgbase"
+ make PREFIX="/usr" DESTDIR="$pkgdir/usr" install
+}
+
+package_simavr-asc-examples() {
+ depends=(simavr-asc=$pkgver freeglut glu)
+ cd "$srcdir/$pkgbase"
+ install -d $pkgdir/usr/share/doc
+ cp -r examples $pkgdir/usr/share/doc/$pkgbase
+}
+