[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Mar 11 14:32:15 UTC 2020


    Date: Wednesday, March 11, 2020 @ 14:32:14
  Author: felixonmars
Revision: 594269

addpkg: haskell-gi-base 0.23.0-1

Added:
  haskell-gi-base/
  haskell-gi-base/repos/
  haskell-gi-base/trunk/
  haskell-gi-base/trunk/PKGBUILD

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

Added: haskell-gi-base/trunk/PKGBUILD
===================================================================
--- haskell-gi-base/trunk/PKGBUILD	                        (rev 0)
+++ haskell-gi-base/trunk/PKGBUILD	2020-03-11 14:32:14 UTC (rev 594269)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=haskell-gi-base
+pkgname=haskell-gi-base
+pkgver=0.23.0
+pkgrel=1
+pkgdesc="Foundation for libraries generated by haskell-gi"
+url="https://github.com/haskell-suite/haskell-gi-base"
+license=("LGPL2")
+arch=('x86_64')
+depends=('ghc-libs' 'glib2')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('b30bac6438159bf2dfe1e3a47ba5639726ffaf70b6b5a548cf71628ea97d864ffb94e3d134ad7d0d976288b0de6052be34eb309f35a3568a74a14f24602a1a1c')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
+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"
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list