blob: 131ece53468c5255e86ef9ab7aa1f798c98e226a (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Jose Quintana <joseluisquintana20[at]gmail[dot]com>
pkgname=static-web-server-bin
_pkgname=static-web-server
pkgver=2.24.1
pkgrel=1
pkgdesc="Static Web Server (sws): A cross-platform, high-performance and asynchronous web server for static files-serving (official binary version)"
arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'aarch64')
url="https://static-web-server.net"
license=('Apache' 'MIT')
provides=('static-web-server' 'sws')
conflicts=('sws')
depends=()
optdepends=()
source_x86_64=(static_web_server_x86_64_${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-x86_64-unknown-linux-gnu.tar.gz)
source_i686=(static_web_server_i686_${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-i686-unknown-linux-gnu.tar.gz)
source_armv6h=(static_web_server_armv6h_${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-arm-unknown-linux-musleabihf.tar.gz)
source_armv7h=(static_web_server_armv7h_${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-armv7-unknown-linux-musleabihf.tar.gz)
source_aarch64=(static_web_server_aarch64_${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-aarch64-unknown-linux-gnu.tar.gz)
sha256sums_x86_64=('b79f24feea19a37eeaa5f64d0e5be5d2e174770b7a858392680d226a1d4db047')
sha256sums_i686=('a8e601ff06c739cf565c85fdec331207242dfa35d92437e1e7bef525f6e067fc')
sha256sums_armv6h=('03dffb5af4a8a416ec224b37c077479542ccee37af0b76eefdb6810469bd395c')
sha256sums_armv7h=('9f0b27cf5024022aae2c441c1442ecd2b098e5b7b2b920ea106db19085a19053')
sha256sums_aarch64=('bf99a4e57a009ee19d523ed4d8b4316ec6b635aa81c48e1644439d9f8f25ab38')
package() {
case "$CARCH" in
'x86_64') target='x86_64-unknown-linux-gnu';;
'i686') target='i686-unknown-linux-gnu';;
'armv6h') target='arm-unknown-linux-musleabihf';;
'armv7h') target='armv7-unknown-linux-musleabihf';;
'aarch64') target='aarch64-unknown-linux-gnu';;
esac
cd "${srcdir}/${_pkgname}-v${pkgver}-${target}/"
# Install docs
install -d "${pkgdir}/usr/share/licenses/${_pkgname}"
cp -R LICENSE-APACHE \
"${pkgdir}/usr/share/licenses/${_pkgname}/"
cp -R LICENSE-MIT \
"${pkgdir}/usr/share/licenses/${_pkgname}/"
# Install binary
install -D -m755 ${_pkgname} \
"${pkgdir}/usr/bin/${_pkgname}"
# Symlink binary
ln -s "/usr/bin/${_pkgname}" "${pkgdir}/usr/bin/sws"
}
|