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

Felix Yan felixonmars at archlinux.org
Thu Aug 13 14:58:44 UTC 2020


    Date: Thursday, August 13, 2020 @ 14:58:44
  Author: felixonmars
Revision: 677413

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 677412, haskell-data-dword/trunk/PKGBUILD)

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

Copied: haskell-data-dword/repos/community-staging-x86_64/PKGBUILD (from rev 677412, haskell-data-dword/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-13 14:58:44 UTC (rev 677413)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=data-dword
+pkgname=haskell-data-dword
+pkgver=0.3.2
+pkgrel=10
+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
+    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
+}
+
+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