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

Felix Yan felixonmars at archlinux.org
Mon Aug 17 06:02:09 UTC 2020


    Date: Monday, August 17, 2020 @ 06:02:09
  Author: felixonmars
Revision: 682234

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-ed25519/repos/community-staging-x86_64/PKGBUILD (from rev 682233, haskell-ed25519/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-17 06:02:09 UTC (rev 682234)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=ed25519
+pkgname=haskell-ed25519
+pkgver=0.0.5.0
+pkgrel=18
+pkgdesc="Ed25519 cryptographic signatures"
+url="http://thoughtpolice.github.com/hs-ed25519"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('cd2bb28de905c6d659f80f15e82970a9634c959432c73b6fd3b10ebca42a1ce734429e7ac861d0ab328904d99651a6d2fcaaf4d74ab75a3c0be68607e8f54ce9')
+
+prepare() {
+    sed -i 's/ghc-prim    >= 0.1 && < 0.5,/ghc-prim    >= 0.1,/' ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+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 \
+            -f-test-properties -f-test-hlint -f-test-doctests -fno-donna
+    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.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.txt"
+}



More information about the arch-commits mailing list