diff options
author | root <root@rshg054.dnsready.net> | 2013-10-26 01:22:45 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-10-26 01:22:45 -0700 |
commit | 24152c3ea77087edccf017c13d44904a75799ff7 (patch) | |
tree | 65e25106816e5071dd5b2edc2270e0138c23dc7c /community/simavr/PKGBUILD | |
parent | 5a3821aec094b38a412cf5e6997c08b6428d6f77 (diff) |
Sat Oct 26 01:21:13 PDT 2013
Diffstat (limited to 'community/simavr/PKGBUILD')
-rw-r--r-- | community/simavr/PKGBUILD | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/community/simavr/PKGBUILD b/community/simavr/PKGBUILD index aa2e8370f..4f9a5a82a 100644 --- a/community/simavr/PKGBUILD +++ b/community/simavr/PKGBUILD @@ -1,31 +1,28 @@ # Maintainer: schuay <jakob.gruber@gmail.com> pkgname=simavr -pkgver=1.0 -pkgrel=2 +pkgver=1.1 +pkgrel=1 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") +makedepends=('avr-libc' 'git') +source=("${pkgname}::git+https://github.com/buserror-uk/simavr.git#tag=v${pkgver}") options=(!strip) +md5sums=('SKIP') build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$pkgname" - # 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" \ + make AVR_ROOT=/usr/avr RELEASE=1 \ + CFLAGS="-Wall -Wextra -fPIC -O2 -std=gnu99 -Wno-sign-compare -Wno-unused-parameter" \ build-simavr } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$pkgname" make PREFIX="/usr" DESTDIR="$pkgdir/usr" install } -md5sums=('82c9704a4e8569548f01931e32ebfe0c') |