blob: ac2df630f2b9ed3b98d71661438afba0864b877a (
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
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lwan
pkgver=0.1
pkgrel=0
pkgdesc="Experimental, scalable, high performance HTTP server"
url="https://lwan.ws"
arch="x86_64"
license="GPL-2.0-or-later"
checkdepends="python3 py3-requests"
makedepends="cmake bsd-compat-headers lua5.1-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-libs $pkgname-dbg"
source="$pkgname-$pkgver.tar.gz::https://github.com/lpereira/$pkgname/archive/v$pkgver.tar.gz
fix-pthread-stack-min.patch
fix-libdir.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
cmake \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_C_FLAGS_MINSIZEREL="$CFLAGS" \
-DCMAKE_CXX_FLAGS_MINSIZEREL="$CXXFLAGS" \
-DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL="$LDFLAGS"
make
}
check() {
cd "$builddir"
make testsuite -j1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
libs() {
default_libs
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.so "$subpkgdir"/usr/lib/
}
sha512sums="6cd42b81402f98c13f905149e515758994b15d9bda6179112c5b2ce59f63c1ce6299234ffcdd64fbc8c37e5f4fd45cfe125c80a05a09ba599158ecf26f5c511c lwan-0.1.tar.gz
e0db0c8c580543399893a86374cc2597cd8f8b358bc79334401948f0729e6da69d719388f023fd696e71d4cca3d9312d26b62b5d8aa0d44196754f8707b0bbcb fix-pthread-stack-min.patch
43e3cdbfa55357a35ea3980d18dcd1962bb850b52592f8c5d270f5f4860cde3ab1e4e371136cb59b7b3d1fa98d81c0f5de447630b40d2300953ff6b62ab1bb4a fix-libdir.patch"
|