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

Felix Yan felixonmars at archlinux.org
Thu Mar 25 06:58:17 UTC 2021


    Date: Thursday, March 25, 2021 @ 06:58:17
  Author: felixonmars
Revision: 902548

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-uuid/repos/community-staging-x86_64/PKGBUILD (from rev 902547, haskell-uuid/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-03-25 06:58:17 UTC (rev 902548)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=uuid
+pkgname=haskell-uuid
+pkgver=1.3.14
+pkgrel=4
+pkgdesc="For creating, comparing, parsing and printing Universally Unique Identifiers"
+url="https://github.com/aslatter/uuid"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-cryptohash-md5" "haskell-cryptohash-sha1" "haskell-entropy"
+         "haskell-network-info" "haskell-random" "haskell-uuid-types")
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('a72e8277235c56fec83b9d100348094a0cb4176b6d3cd68f699a903329bb2b8688db6f9daa1d75cafe56e49b6d1c3fc081237cda12b5e363b9aa2f7d0a33eda0')
+
+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