[arch-commits] Commit in haskell-contravariant-extras/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Sun Nov 14 15:29:52 UTC 2021
Date: Sunday, November 14, 2021 @ 15:29:51
Author: felixonmars
Revision: 1047528
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-contravariant-extras/repos/community-staging-x86_64/
haskell-contravariant-extras/repos/community-staging-x86_64/PKGBUILD
(from rev 1047527, haskell-contravariant-extras/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-contravariant-extras/repos/community-staging-x86_64/PKGBUILD (from rev 1047527, haskell-contravariant-extras/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-14 15:29:51 UTC (rev 1047528)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=contravariant-extras
+pkgname=haskell-contravariant-extras
+pkgver=0.3.5.3
+pkgrel=1
+pkgdesc="Extras for the \"contravariant\" package"
+url="https://github.com/nikita-volkov/contravariant-extras"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-contravariant' 'haskell-template-haskell-compat-v0208')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('4e4c28d8ca1e61e148a7ee7fbb24f86d1741feb340e5aee082faad23227aa420aef3e5a8440a5c4ff26a7d9007edd399de40eb6af33b54b92bab228745d2765f')
+
+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 --ghc-option=-fllvm
+ 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