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

Felix Yan felixonmars at gemini.archlinux.org
Mon Sep 20 22:57:17 UTC 2021


    Date: Monday, September 20, 2021 @ 22:57:17
  Author: felixonmars
Revision: 1019858

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-cracknum/repos/community-staging-x86_64/PKGBUILD (from rev 1019857, haskell-cracknum/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-09-20 22:57:17 UTC (rev 1019858)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=crackNum
+pkgname=haskell-cracknum
+pkgver=3.2
+pkgrel=17
+pkgdesc="Crack various integer and floating-point data formats"
+url="https://github.com/LeventErkok/crackNum"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-libbf' 'haskell-sbv' 'haskell-tasty' 'haskell-tasty-golden')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('1721a70cbebb89cf795882d1e3635e4d4aac5971bb41a2817c188257e459d558809059efc1de0840830f2aa753fa3b54d74ad8da6cbbd3766f6a089f592912d0')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build $MAKEFLAGS
+}
+
+package() {
+    cd $_hkgname-$pkgver
+
+    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