blob: e98fd256361d80cb4301ec8ef69528925cf118cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# 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"
}
|