[arch-commits] Commit in haskell-vector-binary-instances/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Apr 24 10:27:22 UTC 2020


    Date: Friday, April 24, 2020 @ 10:27:21
  Author: felixonmars
Revision: 619161

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-vector-binary-instances/repos/community-staging-x86_64/
  haskell-vector-binary-instances/repos/community-staging-x86_64/PKGBUILD
    (from rev 619160, haskell-vector-binary-instances/trunk/PKGBUILD)

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

Copied: haskell-vector-binary-instances/repos/community-staging-x86_64/PKGBUILD (from rev 619160, haskell-vector-binary-instances/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-24 10:27:21 UTC (rev 619161)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=vector-binary-instances
+pkgname=haskell-vector-binary-instances
+pkgver=0.2.5.1
+pkgrel=43
+pkgdesc="Instances of Data.Binary for vector"
+url="https://github.com/bos/vector-binary-instances"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-vector")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('a16202b8ca3f88df82c27b37511087008579296363c73fe09ab19b00dee0fbaf98699b79b08d7e7410fcd062c03f2c5d1560f6b1c9ebf1ab8290596a35758be0')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i -e 's/<.*4.13/<5/' $_hkgname.cabal
+}
+
+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
+}



More information about the arch-commits mailing list