Date: Sunday, August 21, 2022 @ 17:18:12
  Author: felixonmars
Revision: 1273033

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 1273032, haskell-vector-sized/trunk/PKGBUILD)

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

Copied: haskell-vector-sized/repos/community-staging-x86_64/PKGBUILD (from rev 
1273032, haskell-vector-sized/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-08-21 17:18:12 UTC (rev 1273033)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=vector-sized
+pkgname=haskell-vector-sized
+pkgver=1.5.0
+pkgrel=82
+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 --datasubdir=$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
+}

Reply via email to