# Maintainer: Sven-Hendrik Haase pkgname=dummyhttp pkgver=0.3.0 pkgrel=1 pkgdesc="Super simple HTTP server that replies a fixed body with a fixed response code " arch=('x86_64') url="https://github.com/svenstaro/dummyhttp" license=(MIT) makedepends=(cargo) source=(https://github.com/svenstaro/dummyhttp/archive/${pkgver}.tar.gz) sha512sums=('8e3544d94a8bba2d1ca74894225de27161df20d59868cb3b7cdabf3f0810fcbd1a0d71e53e0056df1b62ed45a85c18cd7c1bdc4b2acc9a8a5c5d2fe31436606b') build() { cd "$srcdir/$pkgname-$pkgver" cargo build --release --locked } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm755 target/release/dummyhttp "$pkgdir"/usr/bin/dummyhttp install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } # vim:set ts=2 sw=2 et: