[arch-commits] Commit in haskell-language-python/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed May 26 23:00:47 UTC 2021


    Date: Wednesday, May 26, 2021 @ 23:00:47
  Author: felixonmars
Revision: 947291

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-language-python/repos/community-staging-x86_64/
  haskell-language-python/repos/community-staging-x86_64/PKGBUILD
    (from rev 947290, haskell-language-python/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: haskell-language-python/repos/community-staging-x86_64/PKGBUILD (from rev 947290, haskell-language-python/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-26 23:00:47 UTC (rev 947291)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=language-python
+pkgname=haskell-language-python
+pkgver=0.5.8
+pkgrel=43
+pkgdesc="Parsing and pretty printing of Python code."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-monads-tf' 'haskell-utf8-string')
+makedepends=('happy' 'alex' 'ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('fa2d9c1a20460e38dcc370be60157090e7279386a4ebc0f4c4bac56fb3a8f65541c41fa789d2df31e385eeea3c05e2f84c44f77917379194eb4e29372ab4c20d')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -fsplit-base
+    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
+    runhaskell Setup copy --destdir="$pkgdir"
+    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