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

Felix Yan felixonmars at archlinux.org
Thu Apr 23 13:59:34 UTC 2020


    Date: Thursday, April 23, 2020 @ 13:59:33
  Author: felixonmars
Revision: 618165

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 618164, haskell-panic/trunk/PKGBUILD)

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

Copied: haskell-panic/repos/community-staging-x86_64/PKGBUILD (from rev 618164, haskell-panic/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-23 13:59:33 UTC (rev 618165)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=panic
+pkgname=haskell-panic
+pkgver=0.4.0.1
+pkgrel=13
+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 \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    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
+}
+
+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