[arch-commits] Commit in haskell-rebase/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Aug 17 06:36:01 UTC 2018
Date: Friday, August 17, 2018 @ 06:36:00
Author: felixonmars
Revision: 372131
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-rebase/repos/community-staging-x86_64/
haskell-rebase/repos/community-staging-x86_64/PKGBUILD
(from rev 372130, haskell-rebase/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: haskell-rebase/repos/community-staging-x86_64/PKGBUILD (from rev 372130, haskell-rebase/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-17 06:36:00 UTC (rev 372131)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=rebase
+pkgname=haskell-rebase
+pkgver=1.2.4
+pkgrel=29
+pkgdesc='A more progressive alternative to the "base" package'
+url="https://github.com/nikita-volkov/rebase"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hashable' 'haskell-vector' 'haskell-unordered-containers'
+ 'haskell-scientific' 'haskell-uuid' 'haskell-dlist' 'haskell-void'
+ 'haskell-bifunctors' 'haskell-profunctors' 'haskell-contravariant'
+ 'haskell-contravariant-extras' 'haskell-semigroupoids' 'haskell-either'
+ 'haskell-base-prelude')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('5691b6bef8633a818ec9050b0b0eaec326c1be17d243911d958a30b28af887f9c94f55d9ef0c7c91eed5cda37bd4ee9f5d57251c58401211c4125f97bd41e162')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -e '/fail/d' -e '/semigroups/d' -i $_hkgname.cabal
+}
+
+build() {
+ cd "${srcdir}/${_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
+ runhaskell Setup build
+ 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}/${_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