[arch-commits] Commit in haskell-panic/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 29 20:24:27 UTC 2022


    Date: Monday, August 29, 2022 @ 20:24:26
  Author: felixonmars
Revision: 1285865

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-panic/repos/community-staging-x86_64/
  haskell-panic/repos/community-staging-x86_64/PKGBUILD
    (from rev 1285864, haskell-panic/trunk/PKGBUILD)

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

Copied: haskell-panic/repos/community-staging-x86_64/PKGBUILD (from rev 1285864, haskell-panic/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-29 20:24:26 UTC (rev 1285865)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=panic
+pkgname=haskell-panic
+pkgver=0.4.0.1
+pkgrel=24
+pkgdesc="A convenient way to panic"
+url="https://github.com/yav/panic"
+license=('ISC')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-gitrev')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('7df11c15414c1513f86a236b1bb549c5cf8795e9f5120580ce5e05b2bd423914df33db79b901835987adb9726d9f24bbc8590cfb4a0a6cb2a905e667e0a4e9da')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
+    runhaskell Setup build $MAKEFLAGS
+    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
+}
+
+package() {
+    cd $_hkgname-$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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list