Date: Tuesday, November 6, 2018 @ 23:31:54
  Author: felixonmars
Revision: 402470

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-psqueues/repos/community-staging-x86_64/PKGBUILD (from rev 
402469, haskell-psqueues/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-11-06 23:31:54 UTC (rev 402470)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=psqueues
+pkgname=haskell-psqueues
+pkgver=0.2.7.0
+pkgrel=12
+pkgdesc="Pure priority search queues"
+url="https://hackage.haskell.org/package/${_hkgname}";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hashable')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-tagged' 
'haskell-test-framework'
+             'haskell-test-framework-hunit' 
'haskell-test-framework-quickcheck2')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('f947c6bd357aa89c386ac093e036dd766260257a69f542ed0db0e860bf40dc12d9932a2c79f9074a7a5e500b27298be5f2ce993bd524287d6fbac6bed3fc4f1b')
+
+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
+    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"
+}

Reply via email to