[arch-commits] Commit in agda/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Oct 18 10:49:10 UTC 2018
Date: Thursday, October 18, 2018 @ 10:49:09
Author: felixonmars
Revision: 395882
upgpkg: agda 2.5.99.20181017-1
Modified:
agda/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-18 10:41:55 UTC (rev 395881)
+++ PKGBUILD 2018-10-18 10:49:09 UTC (rev 395882)
@@ -3,30 +3,34 @@
_hkgname=Agda
pkgname=agda
-pkgver=2.5.4.1
-pkgrel=7
+pkgver=2.5.99.20181017
+_commit=795be65611565b75b253952f6b9690c062747537
+pkgrel=1
pkgdesc="A dependently typed functional programming language and proof assistant"
url="http://wiki.portal.chalmers.se/agda/"
license=("custom")
arch=('x86_64')
-depends=('ghc-libs' 'haskell-async' 'haskell-blaze-html' 'haskell-boxes'
- 'haskell-cpphs' 'haskell-data-hash' 'haskell-edisonapi' 'haskell-edisoncore'
- 'haskell-edit-distance' 'haskell-equivalence' 'haskell-geniplate-mirror' 'haskell-gitrev'
- 'haskell-hashable' 'haskell-hashtables' 'haskell-ieee754' 'haskell-murmur-hash'
- 'haskell-regex-tdfa' 'haskell-strict' 'haskell-unordered-containers' 'haskell-uri-encode'
- 'haskell-zlib')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-async' 'haskell-blaze-html' 'haskell-boxes'
+ 'haskell-cpphs' 'haskell-data-hash' 'haskell-edisoncore' 'haskell-edit-distance'
+ 'haskell-equivalence' 'haskell-geniplate-mirror' 'haskell-gitrev' 'haskell-hashable'
+ 'haskell-hashtables' 'haskell-ieee754' 'haskell-murmur-hash' 'haskell-regex-tdfa'
+ 'haskell-strict' 'haskell-unordered-containers' 'haskell-uri-encode' 'haskell-zlib')
optdepends=('agda-stdlib: for standard library')
makedepends=('alex' 'happy' 'ghc' 'haskell-filemanip')
-source=("$_Hkgname-$pkgver.tar.gz::https://github.com/agda/agda/archive/v$pkgver.tar.gz")
-sha512sums=('3df2218a38596eceea148cdf39ad9af9e67e92811dcf2d92dddaf230d8f7e2b818210a39e166e479693df281faffc6d62947e4727a552aa902156c965eb25869')
+source=("$_hkgname-$_commit.tar.gz::https://github.com/agda/agda/archive/$_commit.tar.gz")
+sha512sums=('394226100693e8fa326f8e182b479369797eae2d28882d15f393433a92f417401d6e165bc14668e9b523b5577be00a244505d9eff0aeb9a800a5cb69e4033d1a')
prepare() {
+ mv $pkgname-{$_commit,$pkgver}
+
mkdir -p lib-target
cp -a $pkgname-$pkgver/src/data/lib lib-target/lib
- sed -e "s|rawSystem agda \\[|rawSystem \"env\" [\"Agda_datadir=$PWD/lib-target\", \"LD_LIBRARY_PATH=$PWD/$pkgname-$pkgver/dist/build\", agda,|" \
- -e "s|datadir dirs|\"$PWD/lib-target\"|" \
+
+ cd $pkgname-$pkgver
+ sed -e "s|rawSystem agda \\[|rawSystem \"env\" [\"Agda_datadir=$PWD/../lib-target\", \"LD_LIBRARY_PATH=$PWD/dist/build\", agda,|" \
+ -e "s|datadir dirs|\"$PWD/../lib-target\"|" \
-e 's|"Builtins"|"Builtin"|' \
- -i $pkgname-$pkgver/Setup.hs
+ -i Setup.hs
}
build() {
@@ -52,6 +56,8 @@
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
- install -m644 "$srcdir"/lib-target/lib/prim/Agda/Primitive.agdai "$pkgdir"/usr/share/agda/lib/prim/Agda/Primitive.agdai
+ install -m644 "$srcdir"/lib-target/lib/prim/Agda/*.agdai "$pkgdir"/usr/share/agda/lib/prim/Agda/
install -m644 "$srcdir"/lib-target/lib/prim/Agda/Builtin/*.agdai "$pkgdir"/usr/share/agda/lib/prim/Agda/Builtin/
+ install -m644 "$srcdir"/lib-target/lib/prim/Agda/Builtin/Cubical/*.agdai "$pkgdir"/usr/share/agda/lib/prim/Agda/Builtin/Cubical/
+ install -m644 "$srcdir"/lib-target/lib/prim/Agda/Primitive/*.agdai "$pkgdir"/usr/share/agda/lib/prim/Agda/Primitive/
}
More information about the arch-commits
mailing list