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

Felix Yan felixonmars at archlinux.org
Sun Aug 30 10:47:44 UTC 2020


    Date: Sunday, August 30, 2020 @ 10:47:44
  Author: felixonmars
Revision: 692639

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-bytestring-show/repos/community-staging-x86_64/
  haskell-bytestring-show/repos/community-staging-x86_64/PKGBUILD
    (from rev 692638, haskell-bytestring-show/trunk/PKGBUILD)

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

Copied: haskell-bytestring-show/repos/community-staging-x86_64/PKGBUILD (from rev 692638, haskell-bytestring-show/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-30 10:47:44 UTC (rev 692639)
@@ -0,0 +1,42 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-bytestring-show
+pkgver=0.3.5.6
+pkgrel=25
+pkgdesc="Efficient conversion of values into readable byte strings."
+url="https://hackage.haskell.org/package/bytestring-show"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/bytestring-show/${pkgver}/bytestring-show-${pkgver}.tar.gz")
+sha512sums=('f59a041e30ec3b3eb9f971968606685ba5968dafc44d92ed50c9f7f124b891f48fc6612fdfc1a57f702e76e41f70c647e81c1919ab7fee194db9d97ddd73dd10')
+
+prepare() {
+    cd bytestring-show-$pkgver
+    sed -e 's/< *0.8/<1/g' -e 's/< *0.6/<1/g' -i bytestring-show.cabal
+    echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
+build() {
+    cd "$srcdir"/bytestring-show-${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 $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
+}
+
+package() {
+    cd "${srcdir}/bytestring-show-${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