Date: Thursday, June 22, 2017 @ 18:21:54
  Author: felixonmars
Revision: 239641

addpkg: haskell-swagger2 2.1.4-1

Added:
  haskell-swagger2/
  haskell-swagger2/repos/
  haskell-swagger2/trunk/
  haskell-swagger2/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Added: haskell-swagger2/trunk/PKGBUILD
===================================================================
--- haskell-swagger2/trunk/PKGBUILD                             (rev 0)
+++ haskell-swagger2/trunk/PKGBUILD     2017-06-22 18:21:54 UTC (rev 239641)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=swagger2
+pkgname=haskell-swagger2
+pkgver=2.1.4
+pkgrel=1
+pkgdesc="Swagger 2.0 data model"
+url="https://github.com/GetShopTV/swagger2";
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=("ghc" "haskell-aeson" "haskell-base-compat" "haskell-hashable" 
"haskell-generics-sop"
+         "haskell-http-media" "haskell-insert-ordered-containers" 
"haskell-lens" "haskell-mtl"
+         "haskell-network" "haskell-scientific" "haskell-text" 
"haskell-transformers-compat"
+         "haskell-unordered-containers" "haskell-vector" "haskell-uuid-types")
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha256sums=('85ade8fabae537abf1c8d4d8b2a7226b29f33d4d97dce8cd02104da817647f44')
+
+prepare() {
+    sed -i 's/, generics-sop >=0.2 && <0.3/, generics-sop >=0.2 \&\& <0.4/' 
${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+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 haddock --hoogle --html
+    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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" 
"${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+    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-swagger2/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property

Reply via email to