From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- simple-http-server-git/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 simple-http-server-git/PKGBUILD (limited to 'simple-http-server-git/PKGBUILD') 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 @@ +# Maintainer: Yigit Sever +# Contributor: caiye +# Contributor: Dario Ostuni + +_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" + "simple-http-server@.service") +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 ./simple-http-server@.service "$pkgdir/usr/lib/systemd/system/simple-http-server@.service" +} -- cgit v1.2.3-70-g09d2