[arch-commits] Commit in agda/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri May 31 09:18:16 UTC 2019
Date: Friday, May 31, 2019 @ 09:18:15
Author: felixonmars
Revision: 475891
upgpkg: agda 2.6.0.1-1
Modified:
agda/trunk/PKGBUILD
----------+
PKGBUILD | 32 +++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-31 09:04:34 UTC (rev 475890)
+++ PKGBUILD 2019-05-31 09:18:15 UTC (rev 475891)
@@ -3,9 +3,8 @@
_hkgname=Agda
pkgname=agda
-pkgver=2.5.99.20190207
-_commit=3048fdaa1840c352fc00aa7222c50bcd622580d8
-pkgrel=30
+pkgver=2.6.0.1
+pkgrel=1
pkgdesc="A dependently typed functional programming language and proof assistant"
url="https://wiki.portal.chalmers.se/agda/"
license=("custom")
@@ -12,25 +11,21 @@
arch=('x86_64')
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-split' 'haskell-strict' 'haskell-unordered-containers' 'haskell-uri-encode'
- 'haskell-zlib')
+ 'haskell-equivalence' 'haskell-exceptions' 'haskell-geniplate-mirror' 'haskell-gitrev'
+ 'haskell-hashable' 'haskell-hashtables' 'haskell-ieee754' 'haskell-murmur-hash'
+ '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=("$_hkgname-$_commit.tar.gz::https://github.com/agda/agda/archive/$_commit.tar.gz")
-sha512sums=('21b061fada9b3ddfb1348366f270990192eefe49e79943a061d843d6fe78c049b87fde73ff3cf70c586e955c8aa5007365723b380686931a55547deae87e0043')
+source=("$_hkgname-$pkgver.tar.gz::https://github.com/agda/agda/archive/v$pkgver.tar.gz")
+sha512sums=('7b830839a37f291b636f6f37e948f114b636a7e41f71c10767d4e7c7c675efe418f6de04de73fc4b545bfbaaa25a86ddb88a0a24114c31c0cdbf351df1f74c69')
prepare() {
- mv $pkgname-{$_commit,$pkgver}
-
mkdir -p lib-target
cp -a $pkgname-$pkgver/src/data/lib lib-target/lib
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"|' \
+ sed -e "s|(\"Agda_datadir\", agda_datadir) : e|[(\"Agda_datadir\", agda_datadir), (\"LD_LIBRARY_PATH\", \"$PWD/dist/build\")] ++ e|" \
-i Setup.hs
sed -i 's/== 0.5/>= 0.5/' Agda.cabal
@@ -37,7 +32,7 @@
}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd $pkgname-$pkgver
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
@@ -51,7 +46,7 @@
}
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"
@@ -58,9 +53,4 @@
runhaskell Setup copy --destdir="${pkgdir}"
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/*.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