[arch-commits] Commit in haskell-ghc-paths/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Aug 30 11:41:05 UTC 2020
Date: Sunday, August 30, 2020 @ 11:41:04
Author: felixonmars
Revision: 692759
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-ghc-paths/repos/community-staging-x86_64/
haskell-ghc-paths/repos/community-staging-x86_64/PKGBUILD
(from rev 692758, haskell-ghc-paths/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-ghc-paths/repos/community-staging-x86_64/PKGBUILD (from rev 692758, haskell-ghc-paths/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-08-30 11:41:04 UTC (rev 692759)
@@ -0,0 +1,37 @@
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haskell-ghc-paths
+pkgver=0.1.0.12
+pkgrel=7
+pkgdesc="Knowledge of GHC's installation directories"
+url='https://hackage.haskell.org/package/ghc-paths'
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/ghc-paths/$pkgver/ghc-paths-$pkgver.tar.gz")
+sha512sums=('1c66caf459f5783bde38a47ce1292bf5c47fef21e3f69d7f6c052b4eb39f446ed5decd38f0e4143a90d55ba44ebc0891b4497050cc652cbf3fcad636d45690e9')
+
+build() {
+ cd "${srcdir}/ghc-paths-${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 $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 "${srcdir}/ghc-paths-${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