[arch-commits] Commit in haskell-hsyaml/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Mar 9 16:32:30 UTC 2019
Date: Saturday, March 9, 2019 @ 16:32:29
Author: felixonmars
Revision: 438428
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 438427, haskell-hsyaml/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: haskell-hsyaml/repos/community-staging-x86_64/PKGBUILD (from rev 438427, haskell-hsyaml/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-03-09 16:32:29 UTC (rev 438428)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=HsYAML
+pkgname=haskell-hsyaml
+pkgver=0.1.1.3
+pkgrel=2
+pkgdesc="Pure Haskell YAML 1.2 parser"
+url="https://github.com/hvr/HsYAML"
+license=('GPL')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('f8e6cf1c4d9e6ceb1df4f8304fb2a34600ee0b9a4eb8c71eeeeed0eddab25f1c36833c6b0fd3504e2fc11e184e8675a45aedeb76cd5055a329e5ecd0fcc6ff39')
+
+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