# Tanım: RISC-V sistem emülatörü
# URL: https://bellard.org/tinyemu/
# Paketçi: milisarge
# Gerekler: sdl 
# Grup: sistem

isim=tinyemu
surum=2018_09_23
devir=1
kaynak=(https://bellard.org/tinyemu/tinyemu-${surum//_/-}.tar.gz
)

derle() {
	cd "$isim-${surum//_/-}"
	make -C $SRC/"$isim-${surum//_/-}"
	install -d "$PKG/usr/local/bin"
	make DESTDIR="$PKG" install
	mv "$PKG/usr/local/bin" "$PKG/usr/"
	rm -rf $PKG/usr/local 
	install -Dm644 MIT-LICENSE.txt "$PKG/usr/share/licenses/$isim/LICENSE"
}
