1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
6 pkgdesc='RISC-V system emulator'
9 url='https://bellard.org/tinyemu/'
13 source=("$url$pkgname-${pkgver//_/-}.tar.gz")
14 sha256sums=('be8351f2121819b3172fcedce5cb1826fa12c87da1b7ed98f269d3e802a05555')
17 local m="$pkgname-${pkgver//_/-}/Makefile"
18 setconf "$m" bindir="/usr/bin"
19 setconf "$m" CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -MMD $CFLAGS -w"
20 setconf "$m" LDFLAGS="$LDFLAGS"
24 make -C "$pkgname-${pkgver//_/-}"
28 cd "$pkgname-${pkgver//_/-}"
29 install -d "$pkgdir/usr/bin"
30 make DESTDIR="$pkgdir" install
31 install -Dm644 readme.txt \
32 "$pkgdir/usr/share/doc/$pkgname/readme.txt"
33 install -Dm644 MIT-LICENSE.txt \
34 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"