Date: Thursday, April 4, 2019 @ 03:58:44
  Author: felixonmars
Revision: 448827

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-network-multicast/repos/community-staging-x86_64/
  haskell-network-multicast/repos/community-staging-x86_64/PKGBUILD
    (from rev 448826, haskell-network-multicast/trunk/PKGBUILD)

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

Copied: haskell-network-multicast/repos/community-staging-x86_64/PKGBUILD (from 
rev 448826, haskell-network-multicast/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-04-04 03:58:44 UTC (rev 448827)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=network-multicast
+pkgname=haskell-network-multicast
+pkgver=0.2.0
+pkgrel=53
+pkgdesc="Simple multicast library"
+url="https://hackage.haskell.org/package/${_hkgname}";
+license=("custom:PublicDomain")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-network")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('121b42abeb2be9dd254f3ec54f2303c2eda50cf2ae232c354ddcdae87d36fe535cf8d70ee2a87fb782a8114ec55587122075270b08a69418a9f9b0827f692626')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --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
+}
+
+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