[arch-commits] Commit in darcs/repos/community-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri May 1 17:33:17 UTC 2020
Date: Friday, May 1, 2020 @ 17:33:17
Author: felixonmars
Revision: 624102
archrelease: copy trunk to community-x86_64
Added:
darcs/repos/community-x86_64/PKGBUILD
(from rev 624101, darcs/trunk/PKGBUILD)
Deleted:
darcs/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 137 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 64 insertions(+), 73 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-01 17:33:01 UTC (rev 624101)
+++ PKGBUILD 2020-05-01 17:33:17 UTC (rev 624102)
@@ -1,73 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
-
-pkgname=darcs
-pkgver=2.14.2
-pkgrel=219
-pkgdesc="A distributed, interactive, smart revision control system"
-url="http://darcs.net"
-license=("GPL2")
-arch=('x86_64')
-depends=('curl' 'ghc-libs' 'haskell-async' 'haskell-attoparsec' 'haskell-base16-bytestring'
- 'haskell-cryptohash' 'haskell-data-ordlist' 'haskell-fgl' 'haskell-graphviz'
- 'haskell-hashable' 'haskell-html' 'haskell-http' 'haskell-knob' 'haskell-mmap'
- 'haskell-network' 'haskell-network-uri' 'haskell-old-time'
- 'haskell-sandi' 'haskell-random' 'haskell-regex-applicative' 'haskell-regex-compat-tdfa'
- 'haskell-tar' 'haskell-unix-compat' 'haskell-utf8-string'
- 'haskell-vector' 'haskell-zip-archive' 'haskell-zlib')
-makedepends=('ghc' 'haskell-cmdargs' 'haskell-findbin' 'haskell-hunit' 'haskell-quickcheck'
- 'haskell-shelly' 'haskell-split' 'haskell-test-framework'
- 'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2')
-source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
- darcs-cabal3.patch::https://raw.githubusercontent.com/input-output-hk/haskell.nix/9f8a6e3e5755e4b917686c6267b1135caf724f1f/patches/darcs-setup.patch)
-sha512sums=('0fd3aa052da9d74f31835a12e7bb50beeff7beec8b10c72cafef7e97fbac02ae178a8f52bf55f1d79887e19164633c8a19ddda01ff2ba4aa8795ac071903552b'
- 'fb951289b5262eca68eb5d6cf6e9f3e5758fd509c4781f19ed9bab0b1bdbc788edefd25f7a900c08cb5e5510c0db6d2fb94226ba921e0e373cc4402649c09c7d')
-
-prepare() {
- cd $pkgname-$pkgver
- sed -e 's/^ghc /ghc -dynamic /' \
- -e 's/ ghc / ghc -dynamic /' \
- -i tests/*.sh tests/lib
- sed -i -e 's/< *0.5/<1/;s/< *2.13/<3/;s/< *4.13/<5/;s/< *1.3/<2/;s/< *2/<4/;s/< *0.8/<1/' $pkgname.cabal
- patch -p1 -i ../darcs-cabal3.patch
- sed -i '/sDistHook = /,+14d' Setup.hs
- sed -i '/fail = failSM/i instance MonadFail SM where' src/Darcs/Patch/ReadMonads.hs
- sed -i 's/fail \$/error $/' src/Darcs/Util/Tree/Monad.hs src/Darcs/Repository/Diff.hs src/Darcs/Patch/Prim/V1/Apply.hs
- sed -i 's/Monad m => PatchInfoAnd/MonadFail m => PatchInfoAnd/' src/Darcs/Patch/PatchInfoAnd.hs
- sed -i 's/fail /error /' src/Darcs/Patch/Depends.hs src/Darcs/Patch/Match.hs src/Darcs/Repository/Match.hs
- sed -i '/fail _ /i instance MonadFail Perhaps where' src/Darcs/Patch/{,Prim}/V1/Commute.hs
-}
-
-build() {
- cd $pkgname-$pkgver
-
- runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
- --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
- -fcurl -fpkgconfig -f-static -fterminfo -fthreaded -fexecutable \
- -f-rts -foptimize -f-warn-as-error -f-libiconv
- LD_LIBRARY_PATH="$srcdir"/$pkgname-$pkgver/dist/build 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
-}
-
-check() {
- cd $pkgname-$pkgver
- # TODO: fix the rest failures
- runhaskell Setup test || :
-}
-
-package() {
- 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"
- runhaskell Setup copy --destdir="${pkgdir}"
- rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
- chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1"
-
- install -Dm644 contrib/darcs_completion "${pkgdir}/usr/share/bash-completion/completions/darcs"
- install -Dm644 contrib/_darcs.zsh "${pkgdir}/usr/share/zsh/site-functions/_darcs"
-}
Copied: darcs/repos/community-x86_64/PKGBUILD (from rev 624101, darcs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-05-01 17:33:17 UTC (rev 624102)
@@ -0,0 +1,64 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=darcs
+pkgver=2.14.3
+pkgrel=1
+pkgdesc="A distributed, interactive, smart revision control system"
+url="http://darcs.net"
+license=("GPL2")
+arch=('x86_64')
+depends=('curl' 'ghc-libs' 'haskell-async' 'haskell-attoparsec' 'haskell-base16-bytestring'
+ 'haskell-cryptohash' 'haskell-data-ordlist' 'haskell-fgl' 'haskell-graphviz'
+ 'haskell-hashable' 'haskell-html' 'haskell-http' 'haskell-knob' 'haskell-mmap'
+ 'haskell-network' 'haskell-network-uri' 'haskell-old-time'
+ 'haskell-sandi' 'haskell-random' 'haskell-regex-applicative' 'haskell-regex-compat-tdfa'
+ 'haskell-tar' 'haskell-unix-compat' 'haskell-utf8-string'
+ 'haskell-vector' 'haskell-zip-archive' 'haskell-zlib')
+makedepends=('ghc' 'haskell-cmdargs' 'haskell-findbin' 'haskell-hunit' 'haskell-quickcheck'
+ 'haskell-shelly' 'haskell-split' 'haskell-test-framework'
+ 'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('ef2735352185cdcf75c05a92eb035cafe042539d0ade0b7dec2ed2b9157b5f7777e5804031a098a022e4653e00729f1378b61617989d72997e0042d768aab03d')
+
+prepare() {
+ cd $pkgname-$pkgver
+ sed -e 's/^ghc /ghc -dynamic /' \
+ -e 's/ ghc / ghc -dynamic /' \
+ -i tests/*.sh tests/lib
+ sed -i -e 's/< *2.14/<3/' $pkgname.cabal
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -fcurl -fpkgconfig -f-static -fterminfo -fthreaded -fexecutable \
+ -f-rts -foptimize -f-warn-as-error -f-libiconv
+ LD_LIBRARY_PATH="$srcdir"/$pkgname-$pkgver/dist/build 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
+}
+
+check() {
+ cd $pkgname-$pkgver
+ # TODO: fix the rest failures
+ runhaskell Setup test || :
+}
+
+package() {
+ 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"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+ chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1"
+
+ install -Dm644 contrib/darcs_completion "${pkgdir}/usr/share/bash-completion/completions/darcs"
+ install -Dm644 contrib/_darcs.zsh "${pkgdir}/usr/share/zsh/site-functions/_darcs"
+}
More information about the arch-commits
mailing list