[arch-commits] Commit in mighttpd2/repos (community-x86_64 community-x86_64/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Sat Aug 20 20:13:31 UTC 2022
Date: Saturday, August 20, 2022 @ 20:13:30
Author: felixonmars
Revision: 1271185
archrelease: copy trunk to community-x86_64
Added:
mighttpd2/repos/community-x86_64/
mighttpd2/repos/community-x86_64/PKGBUILD
(from rev 1271184, mighttpd2/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: mighttpd2/repos/community-x86_64/PKGBUILD (from rev 1271184, mighttpd2/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-08-20 20:13:30 UTC (rev 1271185)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=mighttpd2
+pkgver=4.0.2
+pkgrel=1
+pkgdesc="High performance web server on WAI/warp"
+url="https://kazu-yamamoto.github.io/mighttpd2/"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-async' 'haskell-auto-update' 'haskell-byteorder'
+ 'haskell-case-insensitive' 'haskell-conduit' 'haskell-conduit-extra' 'haskell-http-client'
+ 'haskell-http-date' 'haskell-http-types' 'haskell-network' 'haskell-old-locale'
+ 'haskell-resourcet' 'haskell-split' 'haskell-streaming-commons' 'haskell-time-manager'
+ 'haskell-unix-time' 'haskell-unliftio' 'haskell-unordered-containers' 'haskell-wai'
+ 'haskell-wai-app-file-cgi' 'haskell-wai-http2-extra' 'haskell-wai-logger' 'haskell-warp')
+makedepends=('ghc' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('1d4dc43b96a3064a8c0b752f71591cb04d769b76e3b922a5ea3529057d530960')
+
+build() {
+ cd $pkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+ --ghc-option='-pie' \
+ -f-dhall -f-quic -f-tls
+
+ runhaskell Setup build
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+ cd $pkgname-$pkgver
+ runhaskell Setup test
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+ install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+ runhaskell Setup copy --destdir="$pkgdir"
+ install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list