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

Felix Yan felixonmars at gemini.archlinux.org
Thu Jan 6 03:12:10 UTC 2022


    Date: Thursday, January 6, 2022 @ 03:12:09
  Author: felixonmars
Revision: 1094236

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-vector-sized/repos/community-staging-x86_64/
  haskell-vector-sized/repos/community-staging-x86_64/PKGBUILD
    (from rev 1094235, haskell-vector-sized/trunk/PKGBUILD)

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

Copied: haskell-vector-sized/repos/community-staging-x86_64/PKGBUILD (from rev 1094235, haskell-vector-sized/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-06 03:12:09 UTC (rev 1094236)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=vector-sized
+pkgname=haskell-vector-sized
+pkgver=1.5.0
+pkgrel=23
+pkgdesc="Size tagged vectors"
+url="https://github.com/expipiplus1/vector-sized#readme"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-adjunctions' 'haskell-comonad' 'haskell-distributive'
+         'haskell-finite-typelits' 'haskell-hashable' 'haskell-indexed-list-literals'
+         'haskell-primitive' 'haskell-vector')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('9d986eaf400d7de2122bf243d3362836ef9a5a30d4b50153d27bac2a527068b1d00298e46d8635819b04a33641083ca17ba7fdd804c7e92408e2233aae670481')
+
+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 --ghc-option=-fllvm \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie'
+
+  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 $_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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list