summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorpappy2017-03-14 16:59:26 +0200
committerpappy2018-06-18 13:10:24 +0300
commitb3fd9bca34b8b68da1c1e4ed79ab8d7081deef20 (patch)
treebf1d08c231813176b7b81fc7936972d6c7222737 /PKGBUILD
downloadaur-b3fd9bca34b8b68da1c1e4ed79ab8d7081deef20.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
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
+}
+