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

Felix Yan fyan at archlinux.org
Thu Dec 24 15:34:23 UTC 2015


    Date: Thursday, December 24, 2015 @ 16:34:22
  Author: fyan
Revision: 154449

upgpkg: darcs 2.10.2-6

remove libraries and their docs

Modified:
  darcs/trunk/PKGBUILD
Deleted:
  darcs/trunk/darcs.install

---------------+
 PKGBUILD      |   40 +++++++++++++---------------------------
 darcs.install |   18 ------------------
 2 files changed, 13 insertions(+), 45 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-24 15:21:23 UTC (rev 154448)
+++ PKGBUILD	2015-12-24 15:34:22 UTC (rev 154449)
@@ -4,21 +4,20 @@
 
 pkgname=darcs
 pkgver=2.10.2
-pkgrel=5
+pkgrel=6
 pkgdesc="A distributed, interactive, smart revision control system"
 url="http://darcs.net"
 license=("GPL")
 arch=('i686' 'x86_64')
-depends=("ghc=7.10.3" "curl" "haskell-attoparsec" "haskell-base16-bytestring"
-         "haskell-cryptohash" "haskell-data-ordlist" "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")
-options=('staticlibs' '!emptydirs')
+depends=('curl')
+makedepends=("ghc=7.10.3" "haskell-attoparsec" "haskell-base16-bytestring"
+             "haskell-cryptohash" "haskell-data-ordlist" "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=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-install="${pkgname}.install"
 sha256sums=('6337d3fac04711fa2ef5813558b409c59166c5599b0c9d68c418d21cdccfb327')
 
 prepare() {
@@ -28,32 +27,19 @@
 build() {
     cd "${srcdir}/${pkgname}-${pkgver}"
     
-    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
-        --libsubdir=\$compiler/site-local/\$pkgid \
+    runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --datasubdir="$pkgname" \
         -fcurl -fpkgconfig -fhttp -f-static -fterminfo -fthreaded -fexecutable \
         -f-hpc -f-rts -foptimize -f-warn-as-error -f-use-local-data-map-strict \
         -f-libiconv -f-hashed-storage-diff -fuse-time-1point5 -fnetwork-uri
     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.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
 package() {
     cd "${srcdir}/${pkgname}-${pkgver}"
-    
-    install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
-    install    -m744 unregister.sh "${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh"
-    install -d -m755 "${pkgdir}/usr/share/man/man1"
-    install -d -m755 "${pkgdir}/usr/share/man/man5"
-    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}/COPYING"
+    # Remove library and doc (license only)
+    rm -r "$pkgdir"/usr/{lib,share/doc}
     chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1"
 
     install -Dm644 contrib/darcs_completion "${pkgdir}/usr/share/bash-completion/completions/darcs"

Deleted: darcs.install
===================================================================
--- darcs.install	2015-12-24 15:21:23 UTC (rev 154448)
+++ darcs.install	2015-12-24 15:34:22 UTC (rev 154449)
@@ -1,18 +0,0 @@
-HS_DIR=usr/share/haskell/darcs
-post_install() {
-  ${HS_DIR}/register.sh
-  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
-}
-pre_upgrade() {
-  ${HS_DIR}/unregister.sh
-}
-post_upgrade() {
-  ${HS_DIR}/register.sh
-  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
-}
-pre_remove() {
-  ${HS_DIR}/unregister.sh
-}
-post_remove() {
-  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
-}



More information about the arch-commits mailing list