# Maintainer: Dario Ostuni <dario.ostuni@gmail.com> pkgname=simple-http-server pkgver=0.6.10 pkgrel=1 pkgdesc="Simple http server in Rust" arch=('i686' 'x86_64' 'armv7h' 'aarch64') url="https://github.com/TheWaWaR/simple-http-server" license=('MIT') depends=() makedepends=('cargo') options=() source=("https://crates.io/api/v1/crates/${pkgname}/${pkgver}/download") sha384sums=('b0fe953005e49a0c4ded299c96f2362d897ba9b2399bb54f633833ade1aaea859b838a38791cb2329fa3d9da8240b0bd') build() { cd "$srcdir/$pkgname-$pkgver" cargo build --release } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" }