[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Sun Aug 26 13:37:18 UTC 2018
Date: Sunday, August 26, 2018 @ 13:37:17
Author: felixonmars
Revision: 374235
addpkg: haskell-text-builder 0.5.3.1-1
Added:
haskell-text-builder/
haskell-text-builder/repos/
haskell-text-builder/trunk/
haskell-text-builder/trunk/PKGBUILD
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Added: haskell-text-builder/trunk/PKGBUILD
===================================================================
--- haskell-text-builder/trunk/PKGBUILD (rev 0)
+++ haskell-text-builder/trunk/PKGBUILD 2018-08-26 13:37:17 UTC (rev 374235)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=text-builder
+pkgname=haskell-text-builder
+pkgver=0.5.3.1
+pkgrel=1
+pkgdesc="An efficient strict text builder"
+url="https://github.com/nikita-volkov/text-builder"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-prelude')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-instances' 'haskell-rerebase'
+ 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('6b0fe0f903c3dfe4091b03c706860d6e7ba2023c01e5bc83fb00b6d90030d6b0408ad25be14f97d2f522250f72ad66657d15f37297ddd016079a5eb177044c03')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i '/semigroups/d' $_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}" --enable-tests \
+ --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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+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}"
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
Property changes on: haskell-text-builder/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list