[arch-commits] Commit in haskell-safecopy/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Aug 16 15:42:31 UTC 2017
Date: Wednesday, August 16, 2017 @ 15:42:30
Author: felixonmars
Revision: 251309
upgpkg: haskell-safecopy 0.9.3.2-4
GHC 8.2.1 rebuild
Modified:
haskell-safecopy/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-16 13:33:41 UTC (rev 251308)
+++ PKGBUILD 2017-08-16 15:42:30 UTC (rev 251309)
@@ -4,23 +4,27 @@
_hkgname=safecopy
pkgname=haskell-safecopy
pkgver=0.9.3.2
-pkgrel=3
+pkgrel=4
pkgdesc="Binary serialization with version control."
url="http://acid-state.seize.it/safecopy"
license=('custom:PublicDomain')
arch=('i686' 'x86_64')
-depends=('ghc' 'haskell-cereal' 'haskell-old-time' 'haskell-text' 'haskell-vector')
+depends=('ghc-libs' 'haskell-cereal' 'haskell-old-time' 'haskell-text' 'haskell-vector')
+makedepends=('ghc')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha512sums=('d4dca927b5e6ab78e4548db550c416314507d11e4403a41dc1643e52319a2d397bc1fe8ea6c78b8d2fdaa3bca05603222380dc1a4ad1d956aeacc98919a35943')
+prepare() {
+ sed -e 's/time < 1.7,/time,/' -e 's/template-haskell < 2.12,/template-haskell,/' -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
+ --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
@@ -29,11 +33,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}"
# Remove static libs
More information about the arch-commits
mailing list