1 # Maintainer: Steve Engledow <steve at offend dot me dot uk>
5 pkgdesc="A simple web server for serving files from a chosen directory over HTTP"
7 url="https://github.com/stilvoid/miniserv"
12 md5sums=() #generate with 'makepkg -g'
17 if [ -d miniserv ]; then
22 git clone git://github.com/stilvoid/miniserv.git miniserv
27 echo -e "#!/bin/sh\nnode /usr/lib/${pkgname}/miniserv.js \$*" > "${srcdir}/miniserv/miniserv"
32 install -Dm644 ${srcdir}/miniserv/miniserv.js "${pkgdir}/usr/lib/$pkgname/miniserv.js"
33 install -Dm644 ${srcdir}/miniserv/mime.types "${pkgdir}/usr/lib/$pkgname/mime.types"
34 install -Dm755 ${srcdir}/miniserv/miniserv "${pkgdir}/usr/bin/miniserv"