blob: 14a087d3e9096284631ddcd6b25855c92f677a31 (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Yigit Sever <yigit at yigitsever dot com>
# Contributor: caiye <ye dot jingchen at gmail dot com>
# Contributor: Dario Ostuni <[email protected]>
_pkgname=simple-http-server
pkgname=$_pkgname-git
pkgver=0.6.1.r6.g2712a92
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=('openssl-1.0')
makedepends=('cargo')
conflicts=('simple-http-server')
provides=('simple-http-server')
install=simple-http-server-git.install
options=()
source=("git+https://github.com/TheWaWaR/$_pkgname.git"
"[email protected]")
sha384sums=('SKIP'
'a92987285f702de7eb5c34261e1c7d187b63c151db91fe6428c94428f24f771f0d38139d30febc4dfbfc76a8a697312f')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
export OPENSSL_LIB_DIR="/usr/lib/openssl-1.0"
export OPENSSL_INCLUDE_DIR="/usr/include/openssl-1.0"
cd "$_pkgname"
cargo build --release --target-dir target
}
package() {
install -Dm755 "$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 ./[email protected] "$pkgdir/usr/lib/systemd/system/[email protected]"
}
|