[arch-commits] Commit in haskell-pointed/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 16 15:55:48 UTC 2020
Date: Monday, November 16, 2020 @ 15:55:48
Author: felixonmars
Revision: 755344
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-pointed/repos/community-staging-x86_64/
haskell-pointed/repos/community-staging-x86_64/PKGBUILD
(from rev 755343, haskell-pointed/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: haskell-pointed/repos/community-staging-x86_64/PKGBUILD (from rev 755343, haskell-pointed/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-16 15:55:48 UTC (rev 755344)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=pointed
+pkgname=haskell-pointed
+pkgver=5.0.2
+pkgrel=17
+pkgdesc="Pointed and copointed data"
+url="https://github.com/ekmett/pointed/"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-comonad' 'haskell-data-default-class' 'haskell-hashable'
+ 'haskell-kan-extensions' 'haskell-semigroupoids' 'haskell-tagged'
+ 'haskell-transformers-compat' 'haskell-unordered-containers')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('dc1c60108cf13f089c66511c6cc6cc695de3614fcaa93be54f9b71eb2ed07d4b3b8d9a550e9ba4d73322445eda36679d7abc554ec807755a2e13722cc68627e0')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i -e '/semigroups/d' $_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 \
+ -fcomonad -fcontainers -fkan-extensions -fsemigroupoids -fsemigroups \
+ -fstm -ftagged -ftransformers -funordered-containers
+ 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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list