[arch-commits] Commit in haskell-repline/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Apr 24 04:06:01 UTC 2020
Date: Friday, April 24, 2020 @ 04:05:59
Author: felixonmars
Revision: 618696
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-repline/repos/community-staging-x86_64/
haskell-repline/repos/community-staging-x86_64/PKGBUILD
(from rev 618695, haskell-repline/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-repline/repos/community-staging-x86_64/PKGBUILD (from rev 618695, haskell-repline/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-24 04:05:59 UTC (rev 618696)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=repline
+pkgname=haskell-repline
+pkgver=0.3.0.0
+pkgrel=1
+pkgdesc="Haskeline wrapper for GHCi-like REPL interfaces"
+url="https://github.com/sdiehl/repline"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('119a3be8a9789afbc7fe76f21bdf9f24d8ec251cf2933020357a269cd234828870ae0a2fc5954c02dac1feb1d9583d38db6bf0d22a287e1ac0b2c9745cbd7b00')
+
+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
+ 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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+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