[arch-commits] Commit in darcs/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Sep 16 14:14:20 UTC 2017


    Date: Saturday, September 16, 2017 @ 14:14:19
  Author: felixonmars
Revision: 257832

upgpkg: darcs 2.12.5.20170909-1

Modified:
  darcs/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-09-16 14:13:59 UTC (rev 257831)
+++ PKGBUILD	2017-09-16 14:14:19 UTC (rev 257832)
@@ -3,8 +3,8 @@
 # Contributor: Arch Haskell Team <arch-haskell at haskell.org>
 
 pkgname=darcs
-pkgver=2.12.5
-pkgrel=58
+pkgver=2.12.5.20170909
+pkgrel=1
 pkgdesc="A distributed, interactive, smart revision control system"
 url="http://darcs.net"
 license=("GPL")
@@ -11,24 +11,34 @@
 arch=('i686' 'x86_64')
 depends=('curl' 'ghc' "haskell-async" "haskell-attoparsec" "haskell-base16-bytestring"
          "haskell-cryptohash" "haskell-data-ordlist" "haskell-fgl" "haskell-graphviz"
-         "haskell-hashable" "haskell-html" "haskell-http" "haskell-mmap" "haskell-mtl"
-         "haskell-network" "haskell-network-uri" "haskell-old-time" "haskell-parsec" "haskell-sandi"
-         "haskell-random" "haskell-regex-applicative" "haskell-regex-compat-tdfa" "haskell-tar"
-         "haskell-text" "haskell-transformers-compat" "haskell-unix-compat" "haskell-utf8-string"
-         "haskell-vector" "haskell-zip-archive" "haskell-zlib")
-source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('355b04c85c27bca43c8c380212988d9c1e9a984b0b593ceb2884de4295063553')
+         "haskell-hashable" "haskell-html" "haskell-http" "haskell-knob" "haskell-mmap"
+         "haskell-mtl" "haskell-network" "haskell-network-uri" "haskell-old-time" "haskell-parsec"
+         "haskell-sandi" "haskell-random" "haskell-regex-applicative" "haskell-regex-compat-tdfa"
+         "haskell-tar" "haskell-text" "haskell-unix-compat" "haskell-utf8-string" "haskell-vector"
+         "haskell-zip-archive" "haskell-zlib")
+makedepends=('ghc')
+# Fetched from http://darcs.net/reviewed/reviewed.zip
+source=("https://pkgbuild.com/~felixonmars/sources/darcs-2.12.5.20170909.zip")
+#source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('64f44e9d9727b8f7e00402a8a5dde9b6dc8f103776c4decef90b28af9603830f')
 
+prepare() {
+    mv reviewed $pkgname-$pkgver
+    sed -e 's/graphviz     >= 2999.18.1 && < 2999.19,/graphviz     >= 2999.18.1,/' \
+        -e 's/process      >= 1.2.3.0 && < 1.5.0.0,/process      >= 1.2.3.0,/' \
+        -e 's/time         >= 1.5.0.1 && < 1.8,/time         >= 1.5.0.1,/' \
+        -i $pkgname-$pkgver/darcs.cabal
+}
+
 build() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    
+    cd $pkgname-$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 \
         -fcurl -fpkgconfig -f-static -fterminfo -fthreaded -fexecutable \
-        -f-rts -foptimize -f-warn-as-error -f-libiconv -fnetwork-uri
+        -f-rts -foptimize -f-warn-as-error -f-libiconv
     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
@@ -36,12 +46,10 @@
 }
 
 package() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
+    cd $pkgname-$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/${pkgname}"
     runhaskell Setup copy --destdir="${pkgdir}"
     rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
     chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1"



More information about the arch-commits mailing list