diff options
author | Yigit Sever | 2021-10-29 01:30:24 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 01:30:24 +0300 |
commit | 31d147b20c67d95a9e306d0749200bf964ac42af (patch) | |
tree | b0fbe2bb5aa0fec9983746a91d188643ca93466d /simple-http-server-git/PKGBUILD | |
parent | 4a31e5e0f3442a4a5ec9fba94f7bbc2c88312c69 (diff) | |
download | packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.gz packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.bz2 packages-31d147b20c67d95a9e306d0749200bf964ac42af.zip |
Use actual files instead of submodules
Diffstat (limited to 'simple-http-server-git/PKGBUILD')
-rw-r--r-- | simple-http-server-git/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/simple-http-server-git/PKGBUILD b/simple-http-server-git/PKGBUILD new file mode 100644 index 0000000..14a087d --- /dev/null +++ b/simple-http-server-git/PKGBUILD | |||
@@ -0,0 +1,39 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | # Contributor: caiye <ye dot jingchen at gmail dot com> | ||
3 | # Contributor: Dario Ostuni <dario.ostuni@gmail.com> | ||
4 | |||
5 | _pkgname=simple-http-server | ||
6 | pkgname=$_pkgname-git | ||
7 | pkgver=0.6.1.r6.g2712a92 | ||
8 | pkgrel=1 | ||
9 | pkgdesc="Simple http server in Rust" | ||
10 | arch=('i686' 'x86_64' 'armv7h' 'aarch64') | ||
11 | url="https://github.com/TheWaWaR/simple-http-server" | ||
12 | license=('MIT') | ||
13 | depends=('openssl-1.0') | ||
14 | makedepends=('cargo') | ||
15 | conflicts=('simple-http-server') | ||
16 | provides=('simple-http-server') | ||
17 | install=simple-http-server-git.install | ||
18 | options=() | ||
19 | source=("git+https://github.com/TheWaWaR/$_pkgname.git" | ||
20 | "simple-http-server@.service") | ||
21 | sha384sums=('SKIP' | ||
22 | 'a92987285f702de7eb5c34261e1c7d187b63c151db91fe6428c94428f24f771f0d38139d30febc4dfbfc76a8a697312f') | ||
23 | |||
24 | pkgver() { | ||
25 | cd "$_pkgname" | ||
26 | git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | ||
27 | } | ||
28 | |||
29 | build() { | ||
30 | export OPENSSL_LIB_DIR="/usr/lib/openssl-1.0" | ||
31 | export OPENSSL_INCLUDE_DIR="/usr/include/openssl-1.0" | ||
32 | cd "$_pkgname" | ||
33 | cargo build --release --target-dir target | ||
34 | } | ||
35 | |||
36 | package() { | ||
37 | install -Dm755 "$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname" | ||
38 | install -Dm644 ./simple-http-server@.service "$pkgdir/usr/lib/systemd/system/simple-http-server@.service" | ||
39 | } | ||