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

Felix Yan felixonmars at gemini.archlinux.org
Sat Aug 20 18:09:33 UTC 2022


    Date: Saturday, August 20, 2022 @ 18:09:32
  Author: felixonmars
Revision: 1271103

archrelease: copy trunk to community-x86_64

Added:
  haskell-gio/repos/community-x86_64/
  haskell-gio/repos/community-x86_64/PKGBUILD
    (from rev 1271102, haskell-gio/trunk/PKGBUILD)

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

Copied: haskell-gio/repos/community-x86_64/PKGBUILD (from rev 1271102, haskell-gio/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-08-20 18:09:32 UTC (rev 1271103)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=gio
+pkgname=haskell-gio
+pkgver=0.13.8.2
+pkgrel=1
+pkgdesc="Binding to GIO"
+url="http://projects.haskell.org/gtk2hs/"
+license=("LGPL2_1")
+arch=('x86_64')
+depends=('ghc-libs' 'glib2' 'haskell-glib')
+makedepends=('ghc' 'haskell-gtk2hs-buildtools')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('b3f5ad488523a5569f410eda582a265c5d7331eee26cd116aada0c68d08100ba')
+
+build() {
+  cd $_hkgname-$pkgver
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=haskell-gio --enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie' 
+
+  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"
+  install -D -m644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/COPYING
+}



More information about the arch-commits mailing list