[arch-commits] Commit in haskell-th-abstraction/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Dec 30 09:58:34 UTC 2018


    Date: Sunday, December 30, 2018 @ 09:58:31
  Author: felixonmars
Revision: 418991

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-th-abstraction/repos/community-staging-x86_64/
  haskell-th-abstraction/repos/community-staging-x86_64/PKGBUILD
    (from rev 418990, haskell-th-abstraction/trunk/PKGBUILD)

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

Copied: haskell-th-abstraction/repos/community-staging-x86_64/PKGBUILD (from rev 418990, haskell-th-abstraction/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-12-30 09:58:31 UTC (rev 418991)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=th-abstraction
+pkgname=haskell-th-abstraction
+pkgver=0.2.10.0
+pkgrel=1
+pkgdesc="Nicer interface for reified information about data types"
+url="https://github.com/glguy/th-abstraction/"
+license=("custom:ISC")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('af1c3bb3a0d3380e1b0f19a3d6f9b6445a684bb69142fa531d7c8ac3157768f47f33075db43f83404b25b43e9477b44a7b80e243ae8b7068de151af755c8e9e9')
+
+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
+    runhaskell Setup build
+    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