[arch-commits] Commit in haskell-hsyaml/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 6 21:26:21 UTC 2018
Date: Tuesday, November 6, 2018 @ 21:26:20
Author: felixonmars
Revision: 402217
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-hsyaml/repos/community-staging-x86_64/
haskell-hsyaml/repos/community-staging-x86_64/PKGBUILD
(from rev 402216, haskell-hsyaml/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: haskell-hsyaml/repos/community-staging-x86_64/PKGBUILD (from rev 402216, haskell-hsyaml/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-11-06 21:26:20 UTC (rev 402217)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=HsYAML
+pkgname=haskell-hsyaml
+pkgver=0.1.1.2
+pkgrel=4
+pkgdesc="Pure Haskell YAML 1.2 parser"
+url="https://github.com/hvr/HsYAML"
+license=('GPL')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-dlist')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('5379a3ee36a827579a73b84f82ea6bba713ab9a3437becf01610c96770ff689003c0d3266102df7181241502fc2a894da6cf6b06cbad1fa07d62f58c67f34d80')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -e 's/< *4.12/<5/' -e 's/< *0.6/<1/' -i $_hkgname.cabal
+}
+
+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
+ 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 $_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"
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.GPLv{2,3}
+}
More information about the arch-commits
mailing list