[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Sat Sep 16 17:53:28 UTC 2017
Date: Saturday, September 16, 2017 @ 17:53:27
Author: felixonmars
Revision: 258553
addpkg: haskell-concise 0.1.0.0-1
Added:
haskell-concise/
haskell-concise/repos/
haskell-concise/trunk/
haskell-concise/trunk/PKGBUILD
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Added: haskell-concise/trunk/PKGBUILD
===================================================================
--- haskell-concise/trunk/PKGBUILD (rev 0)
+++ haskell-concise/trunk/PKGBUILD 2017-09-16 17:53:27 UTC (rev 258553)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=concise
+pkgname=haskell-concise
+pkgver=0.1.0.0
+pkgrel=1
+pkgdesc="Utilities for Control.Lens.Cons"
+url="https://github.com/frasertweedal/hs-concise"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-lens' 'haskell-text')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('4b414dce93f6c16625289d39aeae85fcb3f8192059ac3b5f12c786d0330b41282fcdf897687daec0f42d1a93fd056608bc9589b00709df3ba9a9d1b75d048121')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --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 "${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" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Property changes on: haskell-concise/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list