# Description: Lightweight Javascript interpreter
# URL: https://mujs.com
# Maintainer:  Tim Biermann, tbier at posteo dot de

name=mujs
version=1.3.3
release=1
source=(https://mujs.com/downloads/$name-$version.tar.gz)

build() {
  cd $name-$version

  make CFLAGS="-std=c99 -O2 -pipe -march=x86-64" release
  make prefix=/usr DESTDIR=$PKG install-static install-shared

  sed -i -e "s/^Version:.*/Version: $version/" $PKG/usr/lib/pkgconfig/$name.pc
}
