[arch-commits] Commit in haskell-rio-prettyprint/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Nov 4 18:42:35 UTC 2020
Date: Wednesday, November 4, 2020 @ 18:42:34
Author: felixonmars
Revision: 742533
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-rio-prettyprint/repos/community-staging-x86_64/
haskell-rio-prettyprint/repos/community-staging-x86_64/PKGBUILD
(from rev 742532, haskell-rio-prettyprint/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: haskell-rio-prettyprint/repos/community-staging-x86_64/PKGBUILD (from rev 742532, haskell-rio-prettyprint/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-04 18:42:34 UTC (rev 742533)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=rio-prettyprint
+pkgname=haskell-rio-prettyprint
+pkgver=0.1.1.0
+pkgrel=35
+pkgdesc="Pretty-printing for RIO"
+url="https://github.com/commercialhaskell/rio-prettyprint"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-annotated-wl-pprint' 'haskell-ansi-terminal'
+ 'haskell-colour' 'haskell-path' 'haskell-rio')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('3f519fa0dd4ea51af565221504358ca5728b9ebe07df8a2b34b83198bb19d6653c048cd45701fed6d99b5204da05449f35c0be8e98df2da1c34ea99023f06bf4')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
+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 $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
+}
+
+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