[arch-commits] Commit in haskell-ghc-api-compat/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Jun 21 02:20:27 UTC 2021
Date: Monday, June 21, 2021 @ 02:20:27
Author: felixonmars
Revision: 966278
upgpkg: haskell-ghc-api-compat 8.6.1-1
Modified:
haskell-ghc-api-compat/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-21 02:20:19 UTC (rev 966277)
+++ PKGBUILD 2021-06-21 02:20:27 UTC (rev 966278)
@@ -2,8 +2,9 @@
_hkgname=ghc-api-compat
pkgname=haskell-ghc-api-compat
-pkgver=8.6
-pkgrel=2
+pkgver=8.6.1
+_commit=9e8c1ec540bc0a68700e8541d44dca14913c5c9e
+pkgrel=1
pkgdesc="GHC-API compatibility helpers"
url="https://hackage.haskell.org/package/ghc-api-compat"
license=("BSD")
@@ -10,17 +11,19 @@
arch=('x86_64')
depends=('ghc-libs' 'haskell-ghc')
makedepends=('ghc' 'uusi')
-source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
-sha256sums=('7a70211154601ec88cb1acc4e4c69f023a4258bbbb23e3e13bdf25977159b6df')
+# https://gitlab.haskell.org/haskell/ghc-api-compat/-/issues/1
+#source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+source=("https://gitlab.haskell.org/haskell/ghc-api-compat/-/archive/$_commit/ghc-api-compat-$_commit.tar.bz2")
+sha256sums=('c9ff586aca0ccd6ccffe333403d21c9b86ed6dbd6335830419c0875c7df891bc')
prepare() {
- cd $_hkgname-$pkgver
+ cd $_hkgname-$_commit
gen-setup
sed -i 's/GHC.Platform.ARM64/GHC.Platform.AArch64/' $_hkgname.cabal
}
build() {
- cd $_hkgname-$pkgver
+ cd $_hkgname-$_commit
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
@@ -36,7 +39,7 @@
}
package() {
- cd $_hkgname-$pkgver
+ cd $_hkgname-$_commit
install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
More information about the arch-commits
mailing list