[arch-commits] Commit in mighttpd2/repos/community-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Sat Aug 20 20:32:40 UTC 2022
Date: Saturday, August 20, 2022 @ 20:32:40
Author: felixonmars
Revision: 1271195
archrelease: copy trunk to community-x86_64
Added:
mighttpd2/repos/community-x86_64/PKGBUILD
(from rev 1271194, mighttpd2/trunk/PKGBUILD)
Deleted:
mighttpd2/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 109 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 59 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-20 20:32:27 UTC (rev 1271194)
+++ PKGBUILD 2022-08-20 20:32:40 UTC (rev 1271195)
@@ -1,50 +0,0 @@
-# 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
-}
Copied: mighttpd2/repos/community-x86_64/PKGBUILD (from rev 1271194, mighttpd2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-20 20:32:40 UTC (rev 1271195)
@@ -0,0 +1,59 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=mighttpd2
+pkgver=4.0.2
+pkgrel=2
+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-base16-bytestring'
+ 'haskell-byteorder' 'haskell-case-insensitive' 'haskell-conduit' 'haskell-conduit-extra'
+ 'dhall' 'haskell-http-client' 'haskell-http-date' 'haskell-http-types' 'haskell-network'
+ 'haskell-old-locale' 'haskell-quic' 'haskell-resourcet' 'haskell-split'
+ 'haskell-streaming-commons' 'haskell-time-manager' 'haskell-tls'
+ 'haskell-tls-session-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' 'haskell-warp-quic'
+ 'haskell-warp-tls')
+makedepends=('ghc' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
+ https://raw.githubusercontent.com/kazu-yamamoto/mighttpd2/v4.0.1/conf/example.dhall)
+sha256sums=('1d4dc43b96a3064a8c0b752f71591cb04d769b76e3b922a5ea3529057d530960'
+ '454bac34f3096ca43fca573b4e927f2d13db86f794cc1280ea4129ccc7f800c3')
+
+prepare() {
+ mv example.dhall $pkgname-$pkgver/conf/
+}
+
+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' \
+ -fdhall -fquic -ftls
+
+ 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