[arch-commits] Commit in haskell-feed/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Aug 16 19:31:36 UTC 2017
Date: Wednesday, August 16, 2017 @ 19:31:35
Author: felixonmars
Revision: 251501
upgpkg: haskell-feed 0.3.12.0-5
GHC 8.2.1 rebuild
Modified:
haskell-feed/trunk/PKGBUILD
----------+
PKGBUILD | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-16 19:28:06 UTC (rev 251500)
+++ PKGBUILD 2017-08-16 19:31:35 UTC (rev 251501)
@@ -5,24 +5,30 @@
_hkgname=feed
pkgname=haskell-feed
pkgver=0.3.12.0
-pkgrel=4
+pkgrel=5
pkgdesc="Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds."
url="https://github.com/bergmark/feed"
license=("custom:BSD3")
arch=('i686' 'x86_64')
-depends=("ghc" "haskell-old-locale" "haskell-old-time" "haskell-time-locale-compat"
+depends=('ghc-libs' "haskell-old-locale" "haskell-old-time" "haskell-time-locale-compat"
"haskell-utf8-string" "haskell-xml")
+makedepends=('ghc')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha256sums=('cc2d6a3b91027d75b91a0a4c0f83f2df68bee3ce0d7338ea5ae0bcab6dd47942')
+prepare() {
+ sed -e 's/base >= 4 && < 4.10/base >= 4/' \
+ -e 's/, time < 1.7/, time/' \
+ -i $_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}" \
- --libsubdir=\$compiler/site-local/\$pkgid
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$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
@@ -31,11 +37,9 @@
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"
More information about the arch-commits
mailing list