[arch-commits] Commit in haskell-vector-sized/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Aug 2 08:32:48 UTC 2021
Date: Monday, August 2, 2021 @ 08:32:48
Author: felixonmars
Revision: 992126
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 992125, haskell-vector-sized/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-vector-sized/repos/community-staging-x86_64/PKGBUILD (from rev 992125, haskell-vector-sized/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-08-02 08:32:48 UTC (rev 992126)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=vector-sized
+pkgname=haskell-vector-sized
+pkgver=1.4.4
+pkgrel=8
+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=('f18ad80663cf0ee2ce816fe2754c9ad5cc4d9b596ea52edfc4cb7f243976ee8702345bbd0b3bbe8201aa2c8bf7de708b530b8623b121c47432ac235c831ae57a')
+
+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=-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