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

Felix Yan felixonmars at archlinux.org
Fri Jan 1 16:19:06 UTC 2021


    Date: Friday, January 1, 2021 @ 16:19:05
  Author: felixonmars
Revision: 802686

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 802685, haskell-th-abstraction/trunk/PKGBUILD)

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

Copied: haskell-th-abstraction/repos/community-staging-x86_64/PKGBUILD (from rev 802685, haskell-th-abstraction/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-01-01 16:19:05 UTC (rev 802686)
@@ -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.4.2.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=('f67f494c165d7080c45202e58d9e20aa154bf1a7ddaf44643adcfb36d4c62f0b660ab83464a3d06340298b5c7154042d3a956b0ffc5dd99bc5644b52c31e90e4')
+
+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 $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