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

Felix Yan felixonmars at archlinux.org
Fri Dec 25 07:13:52 UTC 2020


    Date: Friday, December 25, 2020 @ 07:13:51
  Author: felixonmars
Revision: 789668

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-extra/repos/community-staging-x86_64/PKGBUILD (from rev 789667, haskell-extra/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-25 07:13:51 UTC (rev 789668)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=extra
+pkgname=haskell-extra
+pkgver=1.7.9
+pkgrel=3
+pkgdesc="Extra functions I use."
+url="https://github.com/ndmitchell/extra#readme"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-clock')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-instances')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('bc231e72f40a357c8c64c2c33fa2c3d64f67a6eb2bbbd903a5415152497011d0ee7d597de8dc02f5e5b82c4a8a5d7f61fecdbba7f1e07981182d7c05547a7546')
+
+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