[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Aug 20 20:13:10 UTC 2022


    Date: Saturday, August 20, 2022 @ 20:13:10
  Author: felixonmars
Revision: 1271184

addpkg: mighttpd2 4.0.2-1

Added:
  mighttpd2/
  mighttpd2/repos/
  mighttpd2/trunk/
  mighttpd2/trunk/PKGBUILD

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Added: mighttpd2/trunk/PKGBUILD
===================================================================
--- mighttpd2/trunk/PKGBUILD	                        (rev 0)
+++ mighttpd2/trunk/PKGBUILD	2022-08-20 20:13:10 UTC (rev 1271184)
@@ -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