[arch-commits] Commit in haskell-gio/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Aug 29 22:29:38 UTC 2022
Date: Monday, August 29, 2022 @ 22:29:38
Author: felixonmars
Revision: 1286581
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-gio/repos/community-staging-x86_64/
haskell-gio/repos/community-staging-x86_64/PKGBUILD
(from rev 1286580, haskell-gio/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: haskell-gio/repos/community-staging-x86_64/PKGBUILD (from rev 1286580, haskell-gio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-08-29 22:29:38 UTC (rev 1286581)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=gio
+pkgname=haskell-gio
+pkgver=0.13.8.2
+pkgrel=4
+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=$pkgname --datasubdir=haskell-gio --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
+ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+ --ghc-option='-pie'
+
+ 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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test --show-details=direct
+}
+
+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