[arch-commits] Commit in agda/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Nov 12 08:25:55 UTC 2021
Date: Friday, November 12, 2021 @ 08:25:55
Author: felixonmars
Revision: 1043372
archrelease: copy trunk to community-staging-x86_64
Added:
agda/repos/community-staging-x86_64/
agda/repos/community-staging-x86_64/PKGBUILD
(from rev 1043371, agda/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: agda/repos/community-staging-x86_64/PKGBUILD (from rev 1043371, agda/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-12 08:25:55 UTC (rev 1043372)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=Agda
+pkgname=agda
+pkgver=2.6.2
+pkgrel=31
+pkgdesc="A dependently typed functional programming language and proof assistant"
+url="https://wiki.portal.chalmers.se/agda/"
+license=("custom")
+arch=('x86_64')
+depends=('ghc-libs' 'ghc' 'haskell-aeson' 'haskell-async' 'haskell-blaze-html' 'haskell-boxes'
+ 'haskell-case-insensitive' 'haskell-cpphs' 'haskell-data-hash' 'haskell-edit-distance'
+ 'haskell-equivalence' 'haskell-gitrev' 'haskell-hashable' 'haskell-hashtables'
+ 'haskell-monad-control' 'haskell-murmur-hash' 'haskell-parallel' 'haskell-regex-tdfa'
+ 'haskell-split' 'haskell-strict' 'haskell-unordered-containers' 'haskell-uri-encode'
+ 'haskell-zlib')
+optdepends=('agda-stdlib: for standard library')
+makedepends=('alex' 'happy' 'ghc' 'haskell-filemanip')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('1be631c8fd2129df4b8eb97e7bbfc54838eccf745d402a9f769f9486e8f6a1f55eeab9d47dd6cd428136ea9a3800766a2c7180662b5a41a6c7f29ffadadc3627')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i '/fno-warn-overlapping-patterns/a \ , "-dynamic"' src/full/Agda/Compiler/MAlonzo/Compiler.hs
+}
+
+build() {
+ cd $_hkgname-$pkgver
+
+ # -fllvm is disabled because ghc+llc hangs since LLVM 13
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fasm \
+ -fcpphs -f-debug -f-enable-cluster-counting
+ LC_CTYPE=en_US.UTF-8 runhaskell Setup build $MAKEFLAGS
+ 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
+}
+
+package() {
+ cd $_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"
+ LD_LIBRARY_PATH="$PWD/dist/build" runhaskell Setup copy --destdir="${pkgdir}"
+
+ # Symlink to avoid writing to this place when agda-lib is present
+ install -dm755 "$pkgdir"/usr/share/agda/lib/_build/$pkgver/agda
+ ln -s ../../../prim "$pkgdir"/usr/share/agda/lib/_build/$pkgver/agda/
+
+ 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