[arch-commits] Commit in haskell-network-uri/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 16 20:12:27 UTC 2018
Date: Wednesday, May 16, 2018 @ 20:12:24
Author: felixonmars
Revision: 323217
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-network-uri/repos/community-staging-x86_64/
haskell-network-uri/repos/community-staging-x86_64/PKGBUILD
(from rev 323216, haskell-network-uri/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-network-uri/repos/community-staging-x86_64/PKGBUILD (from rev 323216, haskell-network-uri/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-16 20:12:24 UTC (rev 323217)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+_hkgname=network-uri
+pkgname=haskell-network-uri
+pkgver=2.6.1.0
+pkgrel=12
+pkgdesc="A library for client-side HTTP"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'sh')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('c1b6e516cd19875aab0da325dcb8f5c6b98d43c3952bda4f96bd9c798882357c724b2facbef09e2e98d29b696a9e5518a2de9463fb0af4c5df0734fe2654cc24')
+
+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
+ 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"
+}
More information about the arch-commits
mailing list