[arch-commits] Commit in haskell-docopt/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Aug 28 07:51:45 UTC 2018
Date: Tuesday, August 28, 2018 @ 07:51:44
Author: felixonmars
Revision: 374869
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-docopt/repos/community-staging-x86_64/
haskell-docopt/repos/community-staging-x86_64/PKGBUILD
(from rev 374868, haskell-docopt/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: haskell-docopt/repos/community-staging-x86_64/PKGBUILD (from rev 374868, haskell-docopt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-28 07:51:44 UTC (rev 374869)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=docopt
+pkgname=haskell-docopt
+pkgver=0.7.0.5
+pkgrel=15
+pkgdesc="A command-line interface parser that will make you smile"
+url="https://github.com/docopt/docopt.hs"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-th-lift")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('68c46287573cbf6cb0e2f01ba117f70a6598e3581f1ca2de6920909b37d8851651d41438a51ae363cb51bd06422e9dba4aa948320e32f904c4b950e764c7e635')
+
+build() {
+ cd "${srcdir}/${_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 \
+ -ftemplate-haskell
+ 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 "${srcdir}/${_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.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.txt"
+}
More information about the arch-commits
mailing list