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

Felix Yan felixonmars at gemini.archlinux.org
Wed Nov 10 16:23:39 UTC 2021


    Date: Wednesday, November 10, 2021 @ 16:23:39
  Author: felixonmars
Revision: 1039833

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-data-dword/repos/community-staging-x86_64/
  haskell-data-dword/repos/community-staging-x86_64/PKGBUILD
    (from rev 1039832, haskell-data-dword/trunk/PKGBUILD)

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

Copied: haskell-data-dword/repos/community-staging-x86_64/PKGBUILD (from rev 1039832, haskell-data-dword/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-10 16:23:39 UTC (rev 1039833)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=data-dword
+pkgname=haskell-data-dword
+pkgver=0.3.2
+pkgrel=107
+pkgdesc="Stick two binary words together to get a bigger one"
+url="https://github.com/mvv/data-dword"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-data-bword' 'haskell-hashable')
+makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('df31147e56d5464397d84b24c86dc33767343bc62978b91df3fcc06872f63ad38cbe6c15f6c225a65499ac23ba3e9046535e3b6e3e59fc89bcb004634f50992e')
+
+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 --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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
+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