blob: 9dcccdddb02b0ac3ee12dfdd0aa49183571f27b2 (
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
25
26
27
|
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
pkgname=dummyhttp
pkgver=0.4.1
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=('232d80a8e26fe92baf7dfed3d6e40ff6b5449ce17da86beaf6d4f40694c9a4a4932a83c83b991b1ed14d4fbbdb6dc57dba6be396114e7f2370c6737a34584a15')
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:
|