[arch-commits] Commit in haskell-hsyaml/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Jul 16 12:31:24 UTC 2018
Date: Monday, July 16, 2018 @ 12:31:24
Author: felixonmars
Revision: 359841
archrelease: copy trunk to community-x86_64
Added:
haskell-hsyaml/repos/community-x86_64/
haskell-hsyaml/repos/community-x86_64/PKGBUILD
(from rev 359840, haskell-hsyaml/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-hsyaml/repos/community-x86_64/PKGBUILD (from rev 359840, haskell-hsyaml/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-07-16 12:31:24 UTC (rev 359841)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=HsYAML
+pkgname=haskell-hsyaml
+pkgver=0.1.1.2
+pkgrel=1
+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')
+
+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