Date: Wednesday, October 26, 2022 @ 12:51:29
  Author: felixonmars
Revision: 1335349

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-edisoncore/repos/community-staging-x86_64/PKGBUILD (from rev 
1335348, haskell-edisoncore/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-10-26 12:51:29 UTC (rev 1335349)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Arch Haskell Team <[email protected]>
+
+_hkgname=EdisonCore
+pkgname=haskell-edisoncore
+pkgver=1.3.3
+pkgrel=4
+pkgdesc="A library of efficient, purely-functional data structures (Core 
Implementations)"
+url="http://rwd.rdockins.name/edison/home/";
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-edisonapi" "haskell-quickcheck")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('a9b22aeec23f9afc2e2399947a26e8358553977cf535c266b5dc8e8b8d99623be46b4294c58bb294c7629a4b0ffe3f70155aeb5adb1e2c2e74518b797010d103')
+
+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 "COPYRIGHT" 
"${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYRIGHT"
+}

Reply via email to